From b6590afc04964ce04181980a51ed36674b4c4b29 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 20 Mar 2001 15:57:30 +0000 Subject: [PATCH] [project @ 2001-03-20 15:57:30 by simonmar] play quoting games to hopefully get this to build with both ghc-4.08.2 and ghc-4.11+. --- ghc/utils/ghc-pkg/Main.hs | 6 ++++-- ghc/utils/ghc-pkg/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index 6ff2055..931d54c 100644 --- a/ghc/utils/ghc-pkg/Main.hs +++ b/ghc/utils/ghc-pkg/Main.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.2 2001/03/16 10:04:31 simonmar Exp $ +-- $Id: Main.hs,v 1.3 2001/03/20 15:57:30 simonmar Exp $ -- -- Package management tool ----------------------------------------------------------------------------- @@ -18,7 +18,9 @@ import Directory import System import IO -default_pkgconf = clibdir ++ "/package.conf" +-- string gap games to confuse CPP. +default_pkgconf = "\ + \ clibdir" ++ "/package.conf" main = do args <- getArgs diff --git a/ghc/utils/ghc-pkg/Makefile b/ghc/utils/ghc-pkg/Makefile index d786868..27dd6bf 100644 --- a/ghc/utils/ghc-pkg/Makefile +++ b/ghc/utils/ghc-pkg/Makefile @@ -1,11 +1,11 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.3 2001/03/16 10:07:02 simonmar Exp $ +# $Id: Makefile,v 1.4 2001/03/20 15:57:30 simonmar Exp $ TOP=../.. include $(TOP)/mk/boilerplate.mk HS_PROG = ghc-pkg -SRC_HC_OPTS += -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -Dclibdir='\"$(libdir)\"' +SRC_HC_OPTS += -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -Dclibdir="$(libdir)" INSTALL_PROGS = $(HS_PROG) -- 1.7.10.4