summaryrefslogtreecommitdiff
path: root/lib/libpthread/pg++
diff options
context:
space:
mode:
authorPeter Galbavy <peter@cvs.openbsd.org>1998-07-21 13:20:29 +0000
committerPeter Galbavy <peter@cvs.openbsd.org>1998-07-21 13:20:29 +0000
commit43b686d61558c0957f1779c747214ddef20a2252 (patch)
tree99fb41dbccee40683a84fe98aa3c6a9784911bf2 /lib/libpthread/pg++
parentea12e8eb2f8d4c89e854d9381f85ce8fb4688ad0 (diff)
Complete initial import from mySQL 3.22.4 (mit-pthreads/).
Lots of dross to move and remove yet. At minimum: o remove GNU config and GNU Makefiles o build arch directory and migrate away machdep/ o rebuild BSD Makefiles o move notes etc. into doc/
Diffstat (limited to 'lib/libpthread/pg++')
-rw-r--r--lib/libpthread/pg++32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/libpthread/pg++ b/lib/libpthread/pg++
new file mode 100644
index 00000000000..0d5f78929ae
--- /dev/null
+++ b/lib/libpthread/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