summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-cc
blob: 3e0e7cff248ea95e06f5e5c4fdc0ba18efae8378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-cc,v 1.1 2005/06/24 06:43:47 jlam 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