Do not link ODBC on Linux
authorJan Vrany <jan.vrany@labware.com>
Fri, 12 Aug 2022 23:19:47 +0100
changeset 330 2744e5db6ffb
parent 329 1c4e83b28ba2
child 331 0e5ff9ce7feb
Do not link ODBC on Linux This commit does not link ODBC by default. It is still built (and included in toy archive) but not loaded by default. ODBC is rarely installed (and used) on Linux machines so this makes toy archive more portable.
specs/stx-jv.rbspec
--- a/specs/stx-jv.rbspec	Fri Jul 29 19:37:10 2022 +0100
+++ b/specs/stx-jv.rbspec	Fri Aug 12 23:19:47 2022 +0100
@@ -118,6 +118,11 @@
   package "stx:libsvn", :repository => :'jv-branch:public', :branch => 'jv'
   package "stx:libjavascript", :repository => :'jv-branch:public', :branch => 'jv'
 
+  # Build but do not link ODBC package on Linux as it is usually
+  # not installed by default (and rarely used)
+  if 'riscv64-unknown-linux-gnu' =~ /linux/ then
+    package "stx:libdb/libodbc", :link => false
+  end
 
   # Some more development tools to build and preload
   # ======================================================================