File: interix.sh

package info (click to toggle)
perl 5.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 128,392 kB
  • sloc: perl: 534,963; ansic: 240,563; sh: 72,042; pascal: 6,934; xml: 2,428; yacc: 1,360; makefile: 1,197; cpp: 208; lisp: 1
file content (37 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (8)
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
33
34
35
36
37
# 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'
plibpth=''

case "$plibpth" in
'') plibpth=`LANG=C LC_ALL=C $cc -print-search-dirs | grep libraries |
        cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
    set X $plibpth # Collapse all entries on one line
    shift
    plibpth="$*"
    ;;
esac

# 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