aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 2a39f48..ef4e11a 100755
--- a/build.sh
+++ b/build.sh
@@ -3,5 +3,8 @@ DEBUG="-g -ggdb -fno-inline"
cd ./brep; cli --generate-file-scanner --suppress-usage --hxx-suffix "" \
--option-prefix "" ./options.cli; cd ..
+cd ./brep; odb -d pgsql --std c++11 --generate-query --generate-schema \
+ package; cd ..
+
g++ -shared $DEBUG -std=c++11 -I. -I/usr/include/apr-1 \
- -fPIC -o libbrep.so `find . -name '*.cxx'`
+ -fPIC -o libbrep.so `find . -name '*.cxx'` -lodb-pgsql -lodb