Hello, users! How are you?
libtool, whcih is in subversion sources, works bad on FreeBSD 4.x
when APR need multithreading (`-pthread' flag) and works bad on FreeBSD
5.x because it needs `-lc_r', not `-pthread'.
On 4.x libtool doesn't pass -pthread when link programs and on 5.x it
strips -lc_r. Here is patch to fix these bugs. Now this patch lives
in FreeBSD ports tree, but I think, it is good idea to merge this
patch into subversion's sources.
May be, I need to create ISSUE for this?
--- ac-helpers/ltmain.sh.orig Thu Oct 23 09:15:47 2003
+++ ac-helpers/ltmain.sh Tue Nov 11 13:10:22 2003
@@ -1072,7 +1072,7 @@
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
- *-*-openbsd* | *-*-freebsd*)
+ *-*-openbsd* | *-*-freebsd4*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
@@ -1211,10 +1211,21 @@
continue
;;
- -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread )
+ -Kthread | -mthreads | -mt | -pthreads | -threads | -qthreaded | -kthread )
compiler_flags="$compiler_flags $arg"
continue
;;
+
+ -pthread)
+ pthread=yes
+ arg=$arg
+ linker_flags="$linker_flags $arg"
+ compiler_flags="$compiler_flags $arg"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ continue
+ ;;
+
# Some other compiler flag.
-* | +*)
Lev Serebryakov
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 11 21:44:29 2003