diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-10-29 21:54:02 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-10-30 19:10:28 +0100 |
commit | 934f8222f76407115a61014cde315514d56730ca (patch) | |
tree | 997a3b34b978dad3fe4f2d113213749dd709fc88 /package/glibc | |
parent | 1e0b97d166ad7414081231148e82c53cd2950cc5 (diff) | |
download | buildroot-934f8222f76407115a61014cde315514d56730ca.tar.gz buildroot-934f8222f76407115a61014cde315514d56730ca.zip |
glibc, toolchain-external: copy libthread_db when gdb is enabled
As Samuel Martin noticed, libthread_db is not only needed when
cross-gdb+gdbserver is used, but also when the native gdb is used on
the target. As a consequence, this patch modifies the glibc package
and the external toolchain logic to ensure that libthread_db is copied
to the target either when the native gdb or gdbserver is enabled, by
relying on the BR2_PACKAGE_GDB option, which is enabled when native
gdb and/or gdbserver are enabled.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/glibc')
-rw-r--r-- | package/glibc/glibc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk index 0dab4926a3..2e7fe82a82 100644 --- a/package/glibc/glibc.mk +++ b/package/glibc/glibc.mk @@ -116,7 +116,7 @@ GLIBC_LIBS_LIB = \ libnsl.so.* libpthread.so.* libresolv.so.* librt.so.* libutil.so.* \ libnss_files.so.* libnss_dns.so.* -ifeq ($(BR2_PACKAGE_GDB_SERVER),y) +ifeq ($(BR2_PACKAGE_GDB),y) GLIBC_LIBS_LIB += libthread_db.so.* endif |