$OpenBSD: update-patches,v 1.3 2000/06/09 17:08:37 espie Exp $ --- config/ltmain.sh.orig Fri Mar 2 10:00:34 2001 +++ config/ltmain.sh Fri Mar 2 10:18:11 2001 @@ -1079,6 +1079,17 @@ compiler." # These systems don't actually have c library (as such) 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 elif test "$arg" = "-lm"; then case "$host" in @@ -1091,6 +1102,10 @@ compiler." deplibs="$deplibs $arg" ;; + -?thread) + deplibs="$deplibs $arg" + ;; + -module) module=yes continue @@ -2689,6 +2704,9 @@ static const void *lt_preloaded_setup() [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" + ;; + *-*-openbsd*) + # Do not include libc due to us having libc/libc_r. ;; *) # Relative path: add a thisdir entry.