Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 5050e6eded46af69277b06e1de13046e > files > 5

libtool-1.5.26-5.1mdv2009.0.src.rpm

diff -p -up libtool-1.5.26/ltmain.in.pix libtool-1.5.26/ltmain.in
--- libtool-1.5.26/ltmain.in.pix	2008-05-26 08:36:23.000000000 +0200
+++ libtool-1.5.26/ltmain.in	2008-05-26 08:38:35.000000000 +0200
@@ -2003,6 +2003,12 @@ EOF
       fi
     done # argument parsing loop
 
+    if test "$module" = yes ; then
+	# [Mandriva] dropping ld option "--no-undefined" which is wrong for plugins
+    	linker_flags=`$echo "X $linker_flags" | $Xsed -e 's/ --no-undefined//'`
+    	compiler_flags=`$echo "X $compiler_flags" | $Xsed -e 's/ -Wl,--no-undefined//'`
+    fi
+
     if test -n "$prev"; then
       $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
       $echo "$help" 1>&2