Commit | Line | Data |
---|---|---|
0c52c6a9 TV |
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='#!' | |
c3eb8dc3 | 15 | usemymalloc='false' |
0c52c6a9 | 16 | usenm='false' |
929c6ecf CBW |
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 | |
0c52c6a9 TV |
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 |