From 0064b2fb749e309a24e5983f08204b85468fcab4 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 4 Feb 2017 17:43:27 +0100 Subject: [PATCH] package/unixodbc: add optional dependency to libtool To get reproducible builds of unixodbc add libtool as optional dependency. Without libtool: $ host/usr/bin/x86_64-linux-readelf -a target/usr/lib/libodbc.so.2.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libc.so.0] With libtool: $ host/usr/bin/x86_64-linux-readelf -a target/usr/lib/libodbc.so.2.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libltdl.so.7] 0x0000000000000001 (NEEDED) Shared library: [libc.so.0] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/unixodbc/unixodbc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk index f66daab4a8..280fe57913 100644 --- a/package/unixodbc/unixodbc.mk +++ b/package/unixodbc/unixodbc.mk @@ -20,6 +20,13 @@ else UNIXODBC_CONF_OPTS += --disable-iconv endif +ifeq ($(BR2_PACKAGE_LIBTOOL),y) +UNIXODBC_CONF_OPTS += --without-included-ltdl +UNIXODBC_DEPENDENCIES += libtool +else +UNIXODBC_CONF_OPTS += --with-included-ltdl +endif + ifeq ($(BR2_PACKAGE_READLINE),y) UNIXODBC_CONF_OPTS += --enable-readline UNIXODBC_DEPENDENCIES += readline -- 2.30.2