PATCH: add -D__ELF__ to powerpc-linux CPP_PREDEFINES
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Mon Jan 5 16:57:00 GMT 1998
Hi,
this small patch helps a lot of old config.guesses out there which check
for __ELF__ to detect newer Linux versions. It also makes the egcs
behaviour across Linux platforms more consistent (someone should have a
look at alpha). It should apply cleanly on egcs-1.0x and current snapshots.
Bye,
Franz.
Tue Jan 06 00:44:00 1997 Franz Sirl <franz.sirl-kernel@lauterbach.com>
* rs6000/linux.h: add -D__ELF__ to CPP_PREDEFINES
--- egcs-1.0/gcc/config/rs6000/linux.h.1.0.1pre Mon Dec 15 21:23:01 1997
+++ egcs-1.0/gcc/config/rs6000/linux.h Mon Jan 5 14:13:04 1998
@@ -23,7 +23,7 @@
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \
- "-DPPC -Dunix -Dlinux -Dpowerpc -Asystem(unix) -Asystem(linux)
-Acpu(powerpc) -Amachine(powerpc)"
+ "-DPPC -D__ELF__ -Dunix -Dlinux -Dpowerpc -Asystem(unix) -Asystem(linux)
-Acpu(powerpc) -Amachine(powerpc)"
#undef LINK_SPEC
#define LINK_SPEC "-m elf32ppc %{G*} %{shared:-shared} \
More information about the Gcc
mailing list