summaryrefslogtreecommitdiffstats
path: root/database/odbcjdbc/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'database/odbcjdbc/BUILD')
-rwxr-xr-xdatabase/odbcjdbc/BUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/database/odbcjdbc/BUILD b/database/odbcjdbc/BUILD
new file mode 100755
index 0000000000..d8d6799c84
--- /dev/null
+++ b/database/odbcjdbc/BUILD
@@ -0,0 +1,13 @@
+if [ "$WHICH" == "stable" ]; then
+ patch -p1 < ${SPELL_DIRECTORY}/gcc.diff
+fi &&
+if [ "$WHICH" == "devel" ]; then
+ cd OdbcJdbc
+fi &&
+ sedit "s|d:/Firebird|/usr/firebird|" Builds/makefile.environ &&
+ cd Builds/Gcc.lin &&
+# can't use patch because file in msdos format
+ sed -i "s|-g |-DPIC -fPIC $CFLAGS |;s|/opt|/usr|;s|/odbc||;s|-sh|$LDFLAGS -sh|" \
+ makefile.linux &&
+
+ make -f makefile.linux