[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Patch to build subversion properly on FreeBSD 4.x with multi-threaded apr

From: Lev Serebryakov <lev_at_serebryakov.spb.ru>
Date: 2003-11-11 21:51:45 CET

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.