aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite')
-rw-r--r--odb/sqlite/buildfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/sqlite/buildfile b/odb/sqlite/buildfile
index 9fb6615..d5f1d13 100644
--- a/odb/sqlite/buildfile
+++ b/odb/sqlite/buildfile
@@ -2,8 +2,8 @@
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
-import libs = libsqlite3%lib{sqlite3}
-import libs += libodb%lib{odb}
+import int_libs = libodb%lib{odb}
+import int_libs += libsqlite3%lib{sqlite3}
lib{odb-sqlite}: \
{hxx }{ auto-handle } \
@@ -49,7 +49,7 @@ lib{odb-sqlite}: \
details/{hxx ixx cxx}{ options } \
details/build2/{h }{ config } \
details/build2/{h }{ config-vc } \
- $libs
+ $int_libs
cxx.poptions =+ -I$out_root -I$src_root -DLIBODB_SQLITE_BUILD2
obja{*}: cxx.poptions += -DLIBODB_SQLITE_STATIC_BUILD
@@ -59,6 +59,8 @@ lib{odb-sqlite}: cxx.export.poptions = -I$src_root -DLIBODB_SQLITE_BUILD2
liba{odb-sqlite}: cxx.export.poptions += -DLIBODB_SQLITE_STATIC
libs{odb-sqlite}: cxx.export.poptions += -DLIBODB_SQLITE_SHARED
+lib{odb-sqlite}: cxx.export.libs = $int_libs
+
# Load the cli module but only if it's available. This way a distribution that
# includes pre-generated files can be built without installing cli.
#