summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-10-23 17:34:03 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-25 22:57:16 +0200
commitf33fcdf2254beb07677a86416ff46ee6d7aed866 (patch)
tree70d3c51be1e0bcd3143332bd8900bbe7a99606d2
parent56cf5612937f14bcc7f2f339b6fb28ea3d635a67 (diff)
downloadbuildroot-f33fcdf2254beb07677a86416ff46ee6d7aed866.tar.gz
buildroot-f33fcdf2254beb07677a86416ff46ee6d7aed866.zip
package/erlang: add optional dependency to unixodbc
Quote from erlang configure without unixodbc: checking for odbc in standard locations... no configure: WARNING: No odbc library found skipping odbc configure: WARNING: "ODBC library - header check failed" configure: WARNING: "ODBC library - link check failed" Quote from erlang configure with unixodbc: checking for odbc in standard locations... -L/home/buildroot/br3_couchdb/output/host/usr/i586-buildroot-linux-uclibc/sysroot/usr/lib checking for SQLAllocHandle in -lodbc... yes To check for unixodbc support used by erlang use readelf: $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/erlang/lib/odbc-2.11.1/priv/bin/odbcserver | grep NEEDED 0x00000001 (NEEDED) Shared library: [libodbc.so.2] 0x00000001 (NEEDED) Shared library: [libc.so.0] Tested using this minimal defconfig: BR2_PACKAGE_ERLANG=y BR2_PACKAGE_ERLANG_SMP=y BR2_PACKAGE_UNIXODBC=y Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/erlang/erlang.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 6efffde498..c9d7b22670 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -55,6 +55,10 @@ else
ERLANG_CONF_OPTS += --without-ssl
endif
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+ERLANG_DEPENDENCIES += unixodbc
+endif
+
ifeq ($(BR2_PACKAGE_ZLIB),y)
ERLANG_CONF_OPTS += --enable-shared-zlib
ERLANG_DEPENDENCIES += zlib
OpenPOWER on IntegriCloud