summaryrefslogtreecommitdiff
path: root/binary/solaris/odb-configure
diff options
context:
space:
mode:
Diffstat (limited to 'binary/solaris/odb-configure')
-rwxr-xr-xbinary/solaris/odb-configure18
1 files changed, 18 insertions, 0 deletions
diff --git a/binary/solaris/odb-configure b/binary/solaris/odb-configure
new file mode 100755
index 0000000..3235dc3
--- /dev/null
+++ b/binary/solaris/odb-configure
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+if test "$1" = "d"; then
+ cxx="g++ -nodefaultlibs"
+ libs="-Wl,-Bstatic,-lstdc++,-Bdynamic -Wl,-lgcc -Wl,-lgcc_eh -Wl,-lm -Wl,-lc"
+else
+ cxx="g++"
+ libs=
+fi
+
+../odb/configure \
+--with-libcutl=../libcutl \
+--disable-rpath \
+--with-gxx-name=../lib/odb/$2/bin/g++ \
+--with-options-file=../etc/odb/default.options \
+--prefix=$3 \
+--libexecdir=$3/lib \
+CXX="$cxx" CXXFLAGS=-O2 LIBS="$libs"