summaryrefslogtreecommitdiff
path: root/devel/libgtop2/files/patch-ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libgtop2/files/patch-ltmain.sh')
-rw-r--r--devel/libgtop2/files/patch-ltmain.sh41
1 files changed, 25 insertions, 16 deletions
diff --git a/devel/libgtop2/files/patch-ltmain.sh b/devel/libgtop2/files/patch-ltmain.sh
index 3e04e21dfc12..6c5ba55f5cb0 100644
--- a/devel/libgtop2/files/patch-ltmain.sh
+++ b/devel/libgtop2/files/patch-ltmain.sh
@@ -1,15 +1,24 @@
---- ltmain.sh.orig Tue Jan 14 00:02:45 2003
-+++ ltmain.sh Tue Jan 14 00:05:36 2003
-@@ -1073,8 +1073,16 @@
+--- ltmain.sh.orig Thu May 1 17:46:16 2003
++++ ltmain.sh Fri May 16 01:43:32 2003
+@@ -1280,7 +1280,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
+ ;;
+@@ -1290,8 +1290,16 @@
continue
;;
+ -pthread)
-+ compile_command="$compile_command -pthread"
-+ finalize_command="$finalize_command -pthread"
-+ compiler_flags="$compiler_flags -pthread"
-+ continue
-+ ;;
++ compile_command="$compile_command -pthread"
++ finalize_command="$finalize_command -pthread"
++ compiler_flags="$compiler_flags -pthread"
++ continue
++ ;;
+
-module)
module=yes
@@ -17,17 +26,17 @@
continue
;;
-@@ -2502,6 +2510,9 @@
- *-*-openbsd*)
- # Do not include libc due to us having libc/libc_r.
+@@ -3000,6 +3008,9 @@
+ # problems, so we reset it completely
+ verstring=
;;
+ *-*-freebsd*)
-+ # FReeBSD doesn't need this...
++ # FreeBSD doesn't need this...
+ ;;
*)
- # Add libc to deplibs on all other systems if necessary.
- if test "$build_libtool_need_lc" = "yes"; then
-@@ -4286,10 +4297,12 @@
+ verstring="0.0"
+ ;;
+@@ -5428,10 +5439,12 @@
fi
# Install the pseudo-library for information purposes.
@@ -36,7 +45,7 @@
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
-+ fi
++ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"