diff options
author | Thomas Backlund <tmb@mageia.org> | 2011-02-05 19:36:23 +0000 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2011-02-05 19:36:23 +0000 |
commit | acffc72f16c13a81f622f9353a5da40a35ebb5ee (patch) | |
tree | 78ba5ee52ec2b72caca4df8846ac6d31a533e4c0 /force-as-needed-for-shared-lib-in-libtool | |
parent | 9f5ce6a5be6bc9679ad32dd2a80e3a3eaada3cfd (diff) | |
download | rpm-setup-acffc72f16c13a81f622f9353a5da40a35ebb5ee.tar rpm-setup-acffc72f16c13a81f622f9353a5da40a35ebb5ee.tar.gz rpm-setup-acffc72f16c13a81f622f9353a5da40a35ebb5ee.tar.bz2 rpm-setup-acffc72f16c13a81f622f9353a5da40a35ebb5ee.tar.xz rpm-setup-acffc72f16c13a81f622f9353a5da40a35ebb5ee.zip |
merge under/overlinking scripts from rpm-manbo-setup
Diffstat (limited to 'force-as-needed-for-shared-lib-in-libtool')
-rwxr-xr-x | force-as-needed-for-shared-lib-in-libtool | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/force-as-needed-for-shared-lib-in-libtool b/force-as-needed-for-shared-lib-in-libtool new file mode 100755 index 0000000..2694273 --- /dev/null +++ b/force-as-needed-for-shared-lib-in-libtool @@ -0,0 +1,14 @@ +#!/bin/sh + +# replaces +# tmp_sharedflag='-shared' ;; +# with +# tmp_sharedflag='-shared -Wl,--as-needed' ;; +# +# since passing -Wl,--as-needed is not enough because libtool moves it +# after *.o and libs + +if [ -e configure ]; then + echo "Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)" + sed -i "s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/" configure +fi |