summaryrefslogtreecommitdiff
path: root/hints/interix.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/interix.sh')
-rw-r--r--hints/interix.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/hints/interix.sh b/hints/interix.sh
new file mode 100644
index 0000000000..74f5a52d2d
--- /dev/null
+++ b/hints/interix.sh
@@ -0,0 +1,26 @@
+# 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='#!'
+usenm='false'
+
+# 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