summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-28 16:50:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-28 16:50:14 +0000
commit30cde042bba5a018bb0e47f3c6c4e93cc372bb67 (patch)
tree0a354b6641b89ff302cc0a36f7b7a15f912c3978 /make
parentClosed window thanks to patch from Eric Norum. (diff)
downloadrtems-30cde042bba5a018bb0e47f3c6c4e93cc372bb67.tar.bz2
Added missing parts of patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'make')
-rw-r--r--make/compilers/gcc-target-default.cfg20
1 files changed, 16 insertions, 4 deletions
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 =\