diff options
author | Gabor Pali <pali.gabor@gmail.com> | 2014-08-22 09:03:09 +0200 |
---|---|---|
committer | Gabor Pali <pali.gabor@gmail.com> | 2014-08-22 09:08:10 +0200 |
commit | 030549a1e263f352814e982fd9dba77755326a03 (patch) | |
tree | 213aa41bdd581124e7ab35308e64849a4e1bf7fa /aclocal.m4 | |
parent | 955db0d1e2ec23dfe3b48140a9193a8ef74e956a (diff) | |
download | haskell-030549a1e263f352814e982fd9dba77755326a03.tar.gz |
Fix #9465.
It turned out the sed(1) expressions are not fully portable. So revist my
earlier attempt for getting GHC_LDFLAGS in the configure script and rewrite
it in Perl instead.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 7fcf67e5ad..bdc6c5de7e 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 -r 's/(^| )([^ ])/\1-optl\2/g'` + GHC_LDFLAGS=`perl -e 'foreach (@ARGV) { print "-optl$_ " }' -- $LDFLAGS` 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 |