From: qrczak Date: Sat, 24 Mar 2001 18:34:05 +0000 (+0000) Subject: [project @ 2001-03-24 18:34:05 by qrczak] X-Git-Tag: Approximately_9120_patches~2321 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d9ad388a8df3f068def241a9d8d03cfa9c2de569;p=ghc-hetmet.git [project @ 2001-03-24 18:34:05 by qrczak] Fix passing library dir to ghc-pkg. --- diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index 931d54c..0caefe6 100644 --- a/ghc/utils/ghc-pkg/Main.hs +++ b/ghc/utils/ghc-pkg/Main.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.3 2001/03/20 15:57:30 simonmar Exp $ +-- $Id: Main.hs,v 1.4 2001/03/24 18:34:05 qrczak Exp $ -- -- Package management tool ----------------------------------------------------------------------------- @@ -18,9 +18,7 @@ import Directory import System import IO --- string gap games to confuse CPP. -default_pkgconf = "\ - \ clibdir" ++ "/package.conf" +default_pkgconf = clibdir ++ "/package.conf" main = do args <- getArgs diff --git a/ghc/utils/ghc-pkg/Makefile b/ghc/utils/ghc-pkg/Makefile index 27dd6bf..0d22015 100644 --- a/ghc/utils/ghc-pkg/Makefile +++ b/ghc/utils/ghc-pkg/Makefile @@ -1,11 +1,12 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.4 2001/03/20 15:57:30 simonmar Exp $ +# $Id: Makefile,v 1.5 2001/03/24 18:34:05 qrczak 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)