1# hints/interix.sh 2# 3# Please check with tech-pkg@netbsd.org before making modifications 4# to this file. 5 6cc='gcc' 7cccdlflags="-DPIC $cccdlflags" 8ccdlflags='-Wl,-E' 9ccflags="-D_ALL_SOURCE $ccflags" 10d_poll="$undef" 11ld='gcc' 12lddlflags="-shared $lddlflags" 13rpathflag='-Wl,-R' 14sharpbang='#!' 15usemymalloc='false' 16usenm='false' 17plibpth='' 18 19case "$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 ;; 26esac 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. 30cat > UU/usethreads.cbu <<'EOCBU' 31case "$usethreads" in 32$define|true|[yY]*) 33 ccflags="-D_REENTRANT $ccflags" 34 libswanted="$libswanted pthread" 35 ;; 36esac 37EOCBU 38