[perl #33892] Add Interix support
[p5sagit/p5-mst-13.2.git] / hints / interix.sh
1 # hints/interix.sh
2 #
3 # Please check with tech-pkg@netbsd.org before making modifications
4 # to this file.
5
6 cc='gcc'
7 cccdlflags="-DPIC $cccdlflags"
8 ccdlflags='-Wl,-E'
9 ccflags="-D_ALL_SOURCE $ccflags"
10 d_poll="$undef"
11 ld='gcc'
12 lddlflags="-shared $lddlflags"
13 rpathflag='-Wl,-R'
14 sharpbang='#!'
15 usenm='false'
16
17 # This script UU/usethreads.cbu will get 'called-back' by Configure 
18 # after it has prompted the user for whether to use threads. 
19 cat > UU/usethreads.cbu <<'EOCBU' 
20 case "$usethreads" in
21 $define|true|[yY]*)
22         ccflags="-D_REENTRANT $ccflags"
23         libswanted="$libswanted pthread"
24         ;; 
25 esac 
26 EOCBU