This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Win32: try to make the new stat pre-Vista compatible
[perl5.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 usemymalloc='false'
16 usenm='false'
17 plibpth=''
18
19 case "$plibpth" in
20 '') plibpth=`LANG=C LC_ALL=C $cc -print-search-dirs | grep libraries |
21         cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
22     set X $plibpth # Collapse all entries on one line
23     shift
24     plibpth="$*"
25     ;;
26 esac
27
28 # This script UU/usethreads.cbu will get 'called-back' by Configure 
29 # after it has prompted the user for whether to use threads. 
30 cat > UU/usethreads.cbu <<'EOCBU' 
31 case "$usethreads" in
32 $define|true|[yY]*)
33         ccflags="-D_REENTRANT $ccflags"
34         libswanted="$libswanted pthread"
35         ;; 
36 esac 
37 EOCBU