pkgsrc/lang/perl58/patches/patch-cc
tv 0a56cb7e05 Add usemymalloc=false for Interix; this is now part of the hints file
officially submitted to perl.org.  (Nonfunctional change, as pkgsrc
already sets -Uusemymalloc at build time.)
2005-01-21 20:23:22 +00:00

32 lines
817 B
Text

$NetBSD: patch-cc,v 1.4 2005/01/21 20:23:22 tv Exp $
--- hints/interix.sh.orig Fri Apr 23 12:29:09 2004
+++ hints/interix.sh Fri Apr 23 12:32:55 2004
@@ -0,0 +1,27 @@
+# hints/interix.sh
+#
+# Please check with tech-pkg@netbsd.org before making modifications
+# to this file.
+
+cc='gcc'
+cccdlflags="-DPIC $cccdlflags"
+ccdlflags='-Wl,-E'
+ccflags="-D_ALL_SOURCE $ccflags"
+d_poll="$undef"
+ld='gcc'
+lddlflags="-shared $lddlflags"
+rpathflag='-Wl,-R'
+sharpbang='#!'
+usemymalloc='false'
+usenm='false'
+
+# This script UU/usethreads.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+ ccflags="-D_REENTRANT $ccflags"
+ libswanted="$libswanted pthread"
+ ;;
+esac
+EOCBU