summaryrefslogtreecommitdiffstats
path: root/database/db/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'database/db/BUILD')
-rwxr-xr-xdatabase/db/BUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/database/db/BUILD b/database/db/BUILD
new file mode 100755
index 0000000000..b44a6b56a9
--- /dev/null
+++ b/database/db/BUILD
@@ -0,0 +1,29 @@
+patch -p1 < $SCRIPT_DIRECTORY/javafix.diff &&
+sedit 's|\(docdir\w*=\w*[^/]*\)/docs|\1/share/doc/db|' dist/Makefile.in &&
+
+# patch -p0 < $SOURCE_CACHE/$SOURCE2 &&
+# patch -p0 < $SOURCE_CACHE/$SOURCE3 &&
+
+# if echo "$OPTS" | grep -q 'enable-java'; then
+OPTS="$OPTS $JSUP $TESTS"
+if [ "JSUP" == "enable-java" ]; then
+ if [ -z $JAVA_HOME ]; then
+ if [ -f $TRACK_ROOT/etc/profile.d/java.sh ]; then
+ source $TRACK_ROOT/etc/profile.d/java.sh
+ fi
+ fi
+fi &&
+
+# this is needed to make db using stuff work on nptl glibc, do _not_ remove it!
+if glibc_is_nptl; then
+ LDFLAGS="$LDFLAGS -lpthread"
+fi &&
+
+cd build_unix &&
+
+../dist/configure --prefix=$INSTALL_ROOT/usr \
+ --build=$BUILD \
+ --enable-dynamic \
+ --enable-compat185 \
+ $OPTS &&
+make