This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
OpenBSD hints for ithreads
[perl5.git] / hints / openbsd.sh
index 8e7c4e5..3b73578 100644 (file)
@@ -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