Re: [perl #20606] [PATCH} openbsd hints
Abe Timmerman [Sun, 2 Feb 2003 18:27:57 +0000 (19:27 +0100)]
Message-Id: <200302021827.57240.abe@ztreet.demon.nl>

p4raw-id: //depot/perl@18647

hints/openbsd.sh

index cc94617..54626fb 100644 (file)
@@ -104,6 +104,14 @@ $define|true|[yY]*)
        # any openbsd version dependencies with pthreads?
        ccflags="-pthread $ccflags"
        ldflags="-pthread $ldflags"
+       case "$osvers" in
+       [0-2].*|3.[0-2])
+               # Change from -lc to -lc_r
+               set `echo "X $libswanted " | sed 's/ c / c_r /'`
+               shift
+               libswanted="$*"
+       ;;
+       esac
 esac
 EOCBU