summaryrefslogtreecommitdiff
path: root/mit-pthreads/pg++
diff options
context:
space:
mode:
authorbk@work.mysql.com <>2000-07-31 21:29:14 +0200
committerbk@work.mysql.com <>2000-07-31 21:29:14 +0200
commitf4c589ff6c653d1d2a09c26e46ead3c8a15655d8 (patch)
treed253a359142dfc1ed247d5d4365d86972ea31109 /mit-pthreads/pg++
parent7eec25e393727b16bb916b50d82b0aa3084e065c (diff)
downloadmariadb-git-f4c589ff6c653d1d2a09c26e46ead3c8a15655d8.tar.gz
Import changeset
Diffstat (limited to 'mit-pthreads/pg++')
-rwxr-xr-xmit-pthreads/pg++32
1 files changed, 32 insertions, 0 deletions
diff --git a/mit-pthreads/pg++ b/mit-pthreads/pg++
new file mode 100755
index 00000000000..0d5f78929ae
--- /dev/null
+++ b/mit-pthreads/pg++
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+pthreads_root=/usr/local/pthreads
+build_root=/dr1/my/masters/mysql/mit-pthreads
+src_root=/dr1/my/masters/mysql/mit-pthreads
+
+include_dir='-I$pthreads_root/include'
+lib_dir='-L$pthreads_root/lib'
+libs='-lpthread -lm -lgcc -lpthread'
+
+# Might be a good idea to also provide a way to override pthreads_root
+# so that we can use this script in the build tree, before installation.
+if arg="$1" ; then
+ case $arg in
+ -notinstalled)
+ include_dir='-I$build_root/include -I$src_root/include'
+ lib_dir='-L$build_root/obj'
+ shift
+ ;;
+ esac
+fi
+
+for arg in "$@" ; do
+ case $arg in
+ -nostdinc) include_dir= ;;
+ -nostdlib | -c) libs= ;;
+ esac
+done
+
+# Include the -L option in any case, just in case the user provided the
+# names of some libraries we've built threaded versions of.
+eval exec g++ '"$@"' $include_dir $lib_dir $libs