[commit: ghc] master: Make configure's sed(1) expression for GHC_LDFLAGS more BSD-friendly. (d39c434)

git at git.haskell.org git at git.haskell.org
Fri Aug 15 16:20:02 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d39c434a9518b7376857be88503055ecb7d0fe1f/ghc

>---------------------------------------------------------------

commit d39c434a9518b7376857be88503055ecb7d0fe1f
Author: Gabor Pali <pali.gabor at gmail.com>
Date:   Fri Aug 15 16:45:18 2014 +0100

    Make configure's sed(1) expression for GHC_LDFLAGS more BSD-friendly.


>---------------------------------------------------------------

d39c434a9518b7376857be88503055ecb7d0fe1f
 aclocal.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index fbd82d9..d3a32b8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1832,7 +1832,7 @@ AC_MSG_NOTICE(Building in-tree ghc-pwd)
     dnl If special linker flags are needed to build things, then allow
     dnl the user to pass them in via LDFLAGS.
     changequote(, )dnl
-    GHC_LDFLAGS=`echo $LDFLAGS | sed 's/\(^\| \)\([^ ]\)/\1-optl\2/g'`
+    GHC_LDFLAGS=`echo $LDFLAGS | sed -r 's/(^| )([^ ])/\1-optl\2/g'`
     changequote([, ])dnl
     if ! "$WithGhc" $GHC_LDFLAGS -v0 -no-user-$GHC_PACKAGE_DB_FLAG -hidir utils/ghc-pwd/dist-boot -odir utils/ghc-pwd/dist-boot -stubdir utils/ghc-pwd/dist-boot --make utils/ghc-pwd/Main.hs -o utils/ghc-pwd/dist-boot/ghc-pwd
     then



More information about the ghc-commits mailing list