[project @ 2001-03-24 18:34:05 by qrczak]
authorqrczak <unknown>
Sat, 24 Mar 2001 18:34:05 +0000 (18:34 +0000)
committerqrczak <unknown>
Sat, 24 Mar 2001 18:34:05 +0000 (18:34 +0000)
Fix passing library dir to ghc-pkg.

ghc/utils/ghc-pkg/Main.hs
ghc/utils/ghc-pkg/Makefile

index 931d54c..0caefe6 100644 (file)
@@ -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
index 27dd6bf..0d22015 100644 (file)
@@ -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)