From acffc72f16c13a81f622f9353a5da40a35ebb5ee Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sat, 5 Feb 2011 19:36:23 +0000 Subject: merge under/overlinking scripts from rpm-manbo-setup --- fix-libtool-ltmain-from-overlinking | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 fix-libtool-ltmain-from-overlinking (limited to 'fix-libtool-ltmain-from-overlinking') diff --git a/fix-libtool-ltmain-from-overlinking b/fix-libtool-ltmain-from-overlinking new file mode 100644 index 0000000..b6b97e3 --- /dev/null +++ b/fix-libtool-ltmain-from-overlinking @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -e ltmain.sh ]; then + echo "Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking)" + + # a similar patch has been applied in ltmain.sh in libtool package + # but this works even if autoreconf is not called + + mv ltmain.sh ltmain.sh.orig + echo link_all_deplibs=no > ltmain.sh + cat ltmain.sh.orig >> ltmain.sh + + sed -i -s 's/link) libs="$deplibs %DEPLIBS% $dependency_libs"/link) libs="$deplibs %DEPLIBS%"/' ltmain.sh +fi -- cgit v1.2.1