summaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
Diffstat (limited to 'odb')
-rw-r--r--odb/buildfile21
1 files changed, 12 insertions, 9 deletions
diff --git a/odb/buildfile b/odb/buildfile
index 46c5ab6..3895019 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -68,15 +68,18 @@ exe{odb}: plugin{odb}: include = adhoc
plugin{odb}: libus{odb}
-# On Windows we have to link the import stub.
-#
-if ($cxx.target.system == 'mingw32')
- plugin{odb}: cxx.libs += $plugin_dir/cc1plus.exe.a
-#
-# On Mac OS we have to allow undefined symbols.
-#
-elif ($cxx.target.system == 'darwin')
- plugin{odb}: cxx.loptions += -undefined dynamic_lookup
+switch $cxx.target.system
+{
+ # On Windows we have to link the import stub.
+ #
+ case 'mingw32'
+ plugin{odb}: cxx.libs += $plugin_dir/cc1plus.exe.a
+
+ # On Mac OS we have to allow undefined symbols.
+ #
+ case 'darwin'
+ plugin{odb}: cxx.loptions += -undefined dynamic_lookup
+}
libus{odb}: {hxx ixx txx cxx}{** -odb -options} {hxx ixx cxx}{options} $libs