summaryrefslogtreecommitdiff
path: root/patches/glibc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-31 09:08:33 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-31 09:08:33 (GMT)
commitfe5feb115430b2126edce4af8d806054396ebd91 (patch)
tree3ccfc5514559ecb61b2880251d916dc3c1c31093 /patches/glibc
parentc49e216c5c2f14a650cc9152d248ccd88f79d9b9 (diff)
Have the glibc build use the cross-objdump, rather than the host one.
On some distros (eg. Fedora), the native objdump can not interpret objects not for the native system, and thus fail. This commit adds a new patch against glibc-2.7 that introduces OBJDUMP_FOR_HOST, wich, if set, overides the detected objdump. Note: bizarely enough, glibc already has code to detect the cross-objdump, but that does not work for an unknown reason... :-( /trunk/patches/glibc/2.7/220-objdump_for_host.patch | 13 13 0 0 +++++++++ /trunk/scripts/build/libc_glibc.sh | 37 21 16 0 +++++++++++++++------------ 2 files changed, 34 insertions(+), 16 deletions(-)
Diffstat (limited to 'patches/glibc')
-rw-r--r--patches/glibc/2.7/220-objdump_for_host.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/glibc/2.7/220-objdump_for_host.patch b/patches/glibc/2.7/220-objdump_for_host.patch
new file mode 100644
index 0000000..8730bc7
--- /dev/null
+++ b/patches/glibc/2.7/220-objdump_for_host.patch
@@ -0,0 +1,13 @@
+diff -durN glibc-2.7.orig/Makerules glibc-2.7/Makerules
+--- glibc-2.7.orig/Makerules 2007-08-26 04:18:03.000000000 +0200
++++ glibc-2.7/Makerules 2008-07-28 15:17:27.000000000 +0200
+@@ -1203,6 +1203,9 @@
+ # The include magic above causes those files to use this variable for flags.
+ CPPFLAGS-nonlib = -DNOT_IN_libc=1
+
++ifneq ($(OBJDUMP_FOR_HOST),)
++OBJDUMP = $(OBJDUMP_FOR_HOST)
++endif
+
+ ifeq ($(versioning),yes)
+ # Generate normalized lists of symbols, versions, and data sizes.