summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorGabor Pali <pali.gabor@gmail.com>2014-08-15 16:45:18 +0100
committerGabor Pali <pali.gabor@gmail.com>2014-08-15 17:19:40 +0100
commitd39c434a9518b7376857be88503055ecb7d0fe1f (patch)
treee8a04468413100951f1a7bee930a76fc2ceb4f05 /aclocal.m4
parent5895f2b8ffba72a8393e9f712461e6e5ed7ceced (diff)
downloadhaskell-d39c434a9518b7376857be88503055ecb7d0fe1f.tar.gz
Make configure's sed(1) expression for GHC_LDFLAGS more BSD-friendly.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index fbd82d9a67..d3a32b80c2 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