diff options
Diffstat (limited to 'hints/openbsd.sh')
-rw-r--r-- | hints/openbsd.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh index 8e7c4e5ce1..3b73578a9d 100644 --- a/hints/openbsd.sh +++ b/hints/openbsd.sh @@ -88,7 +88,9 @@ $define|true|[yY]*) # any openbsd version dependencies with pthreads? ccflags="-pthread $ccflags" ldflags="-pthread $ldflags" + # Add -lpthread. Also change from -lc to -lc_r libswanted="$libswanted pthread" + libswanted=`echo " $libswanted "| sed -e 's/ c / c_r /' -e 's/^ //' -e 's/ $//'` # This is strange. usevfork="$undef" esac |