* [Buildroot] [PATCH 1/1] package/unixodbc: add optional dependency to libtool
@ 2017-02-04 16:43 Bernd Kuhls
2017-02-04 22:55 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2017-02-04 16:43 UTC (permalink / raw)
To: buildroot
To get reproducable 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 <bernd.kuhls@t-online.de>
---
package/unixodbc/unixodbc.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk
index f66daab4a..280fe5791 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.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/unixodbc: add optional dependency to libtool
2017-02-04 16:43 [Buildroot] [PATCH 1/1] package/unixodbc: add optional dependency to libtool Bernd Kuhls
@ 2017-02-04 22:55 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-02-04 22:55 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 4 Feb 2017 17:43:27 +0100, Bernd Kuhls wrote:
> To get reproducable 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 <bernd.kuhls@t-online.de>
> ---
> package/unixodbc/unixodbc.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-04 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 16:43 [Buildroot] [PATCH 1/1] package/unixodbc: add optional dependency to libtool Bernd Kuhls
2017-02-04 22:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox