summaryrefslogtreecommitdiff
path: root/hints/os2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/os2.sh')
-rw-r--r--hints/os2.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/os2.sh b/hints/os2.sh
index 2a589b5cb4..a012a7317a 100644
--- a/hints/os2.sh
+++ b/hints/os2.sh
@@ -245,6 +245,15 @@ case "X$optimize" in
;;
esac
+if [ "X$usethreads" != "X" ]; then
+ ccflags="-DUSE_THREADS -Zmt $ccflags"
+ cppflags="-DUSE_THREADS -Zmt $cppflags"
+ aout_ccflags="-DUSE_THREADS $aout_ccflags"
+ aout_cppflags="-DUSE_THREADS $aout_cppflags"
+ aout_lddlflags="-Zmt $aout_lddlflags"
+ aout_ldflags="-Zmt $aout_ldflags"
+fi
+
# The next two are commented. pdksh handles #!, extproc gives no path part.
# sharpbang='extproc '
# shsharp='false'