From 8f3b0805c8d93784eb5b8d90bf75e45c77414011 Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 6 Jan 2003 07:28:57 +0000 Subject: [PATCH] pthread handling --- .../patches/patch-admin_ltmain_sh | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 x11/kde/mosfet-liquid/patches/patch-admin_ltmain_sh diff --git a/x11/kde/mosfet-liquid/patches/patch-admin_ltmain_sh b/x11/kde/mosfet-liquid/patches/patch-admin_ltmain_sh new file mode 100644 index 00000000000..e08a49afb57 --- /dev/null +++ b/x11/kde/mosfet-liquid/patches/patch-admin_ltmain_sh @@ -0,0 +1,55 @@ +$OpenBSD: patch-admin_ltmain_sh,v 1.1 2003/01/06 07:28:57 espie Exp $ +--- admin/ltmain.sh.orig Mon Jan 6 08:18:27 2003 ++++ admin/ltmain.sh Mon Jan 6 08:21:50 2003 +@@ -1224,11 +1224,29 @@ EOF + continue + ;; + esac ++ elif test "X$arg" = "X-lc_r"; then ++ case $host in ++ *-*-openbsd* | *-*-freebsd*) ++ # Do not include libc_r directly, use -pthread flag. ++ continue ++ ;; ++ esac + fi + deplibs="$deplibs $arg" + continue + ;; + ++ -pthread) ++ case $host in ++ *-*-openbsd*) ++ deplibs="$deplibs $arg" ++ ;; ++ *) ++ continue ++ ;; ++ esac ++ ;; ++ + -module) + module=yes + continue +@@ -1804,6 +1822,21 @@ EOF + fi + continue + ;; ++ ++ -pthread) ++ case $linkmode in ++ lib) ++ deplibs="$deplib $deplibs" ++ newdependency_libs="$deplib $newdependency_libs" ++ ;; ++ prog) ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ ;; ++ esac ++ continue ++ ;; ++ + %DEPLIBS%) + alldeplibs=yes + continue