OpenBSD hints for ithreads
Andy Dougherty [Thu, 18 Oct 2001 12:33:59 +0000 (08:33 -0400)]
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