OpenBSD hints for ithreads
authorAndy Dougherty <doughera@lafayette.edu>
Thu, 18 Oct 2001 12:33:59 +0000 (08:33 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 19 Oct 2001 00:14:50 +0000 (00:14 +0000)
Message-ID: <Pine.SOL.4.10.10110181232060.15040-100000@maxwell.phys.lafayette.edu>

p4raw-id: //depot/perl@12498

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