* PATCH: add -D__ELF__ to powerpc-linux CPP_PREDEFINES
@ 1998-01-05 16:57 Franz Sirl
1998-01-14 4:17 ` Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: Franz Sirl @ 1998-01-05 16:57 UTC (permalink / raw)
To: egcs
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} \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: add -D__ELF__ to powerpc-linux CPP_PREDEFINES
1998-01-05 16:57 PATCH: add -D__ELF__ to powerpc-linux CPP_PREDEFINES Franz Sirl
@ 1998-01-14 4:17 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-01-14 4:17 UTC (permalink / raw)
To: Franz Sirl; +Cc: egcs
In message < v03110704b0d737bd172c@[195.180.235.188] >you write:
> 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.
>
>
> Tue Jan 06 00:44:00 1997 Franz Sirl <franz.sirl-kernel@lauterbach.com>
> * rs6000/linux.h: add -D__ELF__ to CPP_PREDEFINES
Thanks. I've installed this patch.
BTW I think the alpha is OK as it defines __ELF__ in linux-elf.h.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-01-14 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-05 16:57 PATCH: add -D__ELF__ to powerpc-linux CPP_PREDEFINES Franz Sirl
1998-01-14 4:17 ` Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).