This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
.SUFFIXES hosed by switch to automake 1.9.x
- From: Joern Rennecke <joernr at arc dot com>
- To: newlib at sourceware dot org
- Cc: jjohnstn at redhat dot com
- Date: Tue, 17 Apr 2007 23:38:01 +0100
- Subject: .SUFFIXES hosed by switch to automake 1.9.x
Before the switch to automake 1.9.x, the .SUFFIXES rule in
newlib/libc/sys/arc/Makefile.in was:
.SUFFIXES: .S .c .o .s
Since the switch to automake 1.9.x on 11 April 2006, this rule now reads:
.SUFFIXES: .c .o .obj
which breaks building crt0.o , since now there is no rule to build it from
crt0.S .
A quick grep of
newlib/libc/sys/*/Makefile.in shows that arc is not the only target affected.
I see that some are not affected; looking at the first of these, arm,
shouws that there is a trap.S in EXTRA_lib_a_SOURCES ; presumably, this
explicit mention of a .S file protects the arm target from this bogosity.
Should we consider this to be an automake bug, or should every target
that builds a crt0.o from crt0.S (or equivalent) add a
SUFFIXES = .S
rule ?
(Relying on another .S file to preserve the rule is asking for trouble
down the line if that file ever gets removed or converted to another input
language.)