From 30cde042bba5a018bb0e47f3c6c4e93cc372bb67 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 28 Jul 1998 16:50:14 +0000 Subject: Added missing parts of patch from Ralf Corsepius . --- make/compilers/gcc-target-default.cfg | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'make') diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg index 82294d0e87..713c5b1bcf 100644 --- a/make/compilers/gcc-target-default.cfg +++ b/make/compilers/gcc-target-default.cfg @@ -203,8 +203,20 @@ ${ARCH}/%.o: %.s # Specify our own default rule for this to prevent having CFLAGS and # CPPFLAGS being passed to linker -${ARCH}/%: ${ARCH}/%.o - ${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS} +# +# +# NOTE (Ralf): Having this rule is a bug, IMO. +# I have only kept it for the moment because some (broken) Makefiles +# might need it. +# +# ${ARCH}/%: ${ARCH}/%.o +# ${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS} +# +# Anyway, the rule above is wrong. The one below should be correct +# (But this one should also not be necessary. If something breaks now, +# have a look at the Makefile or custom/*.cfg :-) +# $(ARCH)/%.exe: $(ARCH)/%.o +# $(make-exe) # Make foo.rel from foo.o ${ARCH}/%.rel: ${ARCH}/%.o @@ -271,11 +283,11 @@ endif # gcc27: # $(PGM): $(LINK_FILES) # $(LD) $(LDFLAGS) -o $@ $(LINK_OBJS) \ -# --start-group $(LIB_LIBS) --end-group +# --start-group $(LINK_LIBS) --end-group # # gcc28: # $(PGM): $(LINK_FILES) -# $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LIB_LIBS) +# $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) # LINK_OBJS =\ -- cgit v1.2.3