Hi,
libtool-1.5.18 doesn't include -pthread in the dependency_libs
field of the .la file. This leads to link errors on DragonFly,
when linking against that library. Typical example is
ligthread from glib, which is a dependency of libORBit-2.
orbit-name-server-2 is linked against libORBit-2, but without
explicit -pthread. This fails with missing symbols.
The attached patch illustrates a possible workaround, but doesn't
apply to -pthread.
Joerg
--- ltmain.sh.orig 2005-05-16 11:39:29.000000000 +0200
+++ ltmain.sh 2005-05-19 00:08:43.000000000 +0200
@@ -1523,6 +1576,7 @@
compiler_flags="$compiler_flags $arg"
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
+ deplibs="$deplibs $arg"
continue
;;
@@ -2013,6 +2067,29 @@
else
compiler_flags="$compiler_flags $deplib"
fi
+
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ ;;
+ *)
+ ;;
+ esac # linkmode
+
continue
;;
-l*)
_______________________________________________
Bug-libtool mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-libtool