ghc/ghc-suse-as-needed.patch

14 lines
413 B
Diff

diff -Nur ghc-7.4.1/aclocal.m4 ghc-7.4.1-suse-as-needed/aclocal.m4
--- ghc-7.4.1/aclocal.m4 2012-02-01 19:10:32.000000000 +0100
+++ ghc-7.4.1-suse-as-needed/aclocal.m4 2012-04-07 14:52:31.000000000 +0200
@@ -434,6 +434,9 @@
$4="$$4 $LdReduceMemoryOverheads"
fi
+ $3="$$3 -Wl,--no-as-needed"
+ $4="$$4 --no-as-needed"
+
rm -f conftest.c conftest.o
AC_MSG_RESULT([done])
])