openbsd-ports/textproc/sablotron/patches/patch-autocfg_ltmain_sh
2004-02-29 00:39:25 +00:00

39 lines
796 B
Plaintext

$OpenBSD: patch-autocfg_ltmain_sh,v 1.1 2004/02/29 00:39:25 avsm Exp $
--- autocfg/ltmain.sh.orig 2003-11-24 10:13:10.000000000 +0000
+++ autocfg/ltmain.sh 2004-02-29 00:31:03.000000000 +0000
@@ -1079,12 +1079,34 @@ compiler."
# Do not include libc_r directly, use -pthread flag.
continue
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ continue
+ ;;
+ esac
+ elif test "$arg" = "-lc_r"; then
+ case "$host" in
+ *-*-openbsd*)
+ # 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