package/gdb: Add optional dependencies
PATCH v2 1/1 package/gdb: Add optional dependencies
To allow reproducable builds of target gdb add some optional dependencies
$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/gdb | grep NEEDED 0x00000001 (NEEDED) Shared library: [libdl.so.0] 0x00000001 (NEEDED) Shared library: [libncurses.so.5] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libm.so.0] 0x00000001 (NEEDED) Shared library: [libiconv.so.2] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libutil.so.0] 0x00000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x00000001 (NEEDED) Shared library: [libexpat.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0]
Signed-off-by Bernd Kuhls <[email protected]>
---
v2: Dependencies are only needed for target gdb (Yann)
package/gdb/gdb.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
package/gdb/gdb.mk +4 -1
@@ -33,7 +33,10 @@ ifeq ($(BR2_PACKAGE_GDB_DEBUGGER),) GDB_SUBDIR = gdb/gdbserver HOST_GDB_SUBDIR = . else -GDB_DEPENDENCIES = ncurses +GDB_DEPENDENCIES = ncurses \ + $(if $(BR2_PACKAGE_EXPAT),expat) \ + $(if $(BR2_PACKAGE_LIBICONV),libiconv) \ + $(if $(BR2_PACKAGE_ZLIB),zlib) endif # For the host variant, we really want to build with XML support,
Signature · 1 line
1.7.10.4
Thomas Petazzoni
AppliedPATCH v2 1/1 package/gdb: Add optional dependencies
Dear Bernd Kuhls,
Quoted 14 lines · Bernd Kuhls
To allow reproducable builds of target gdb add some optional dependencies
$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/gdb | grep NEEDED 0x00000001 (NEEDED) Shared library: [libdl.so.0] 0x00000001 (NEEDED) Shared library: [libncurses.so.5] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libm.so.0] 0x00000001 (NEEDED) Shared library: [libiconv.so.2] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libutil.so.0] 0x00000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x00000001 (NEEDED) Shared library: [libexpat.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0]
Quoted 3 lines
Signed-off-by Bernd Kuhls <[email protected]>---
v2: Dependencies are only needed for target gdb (Yann)
Applied, thanks, after adding --{with,without}-{expat,zlib} to explicitly enable/disable the use of these libraries. There was no such option for libiconv, so I kept it as it was in your patch.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com