path: root/make/compilers
diff options
authorJoel Sherrill <>1998-07-10 14:13:59 +0000
committerJoel Sherrill <>1998-07-10 14:13:59 +0000
commitcc8a388aace9394a096a44262c79ecf69023456b (patch)
tree74a69f864b3e5588b03e26288633e22fc0fd3cb1 /make/compilers
parentRegenerated after patch from David Fiddes <> for (diff)
Patch from Ralf Corsepius <>. Comments:
> It seems that rules for %{EXEEXT} don't exist in gcc-target-default.cfg No, gcc-target-default.cfg is used to compile executables for the target only, not for the host. EXEEXT may only be used for programs to be run on the host. > What should I add please? This was a bug in my initial configuration patch to rtems-980616. A correction to this patch I had sent to Joel at 26.06.98 doesn't seem to have made it into the snapshot. Please find attached the patch I had sent to Joel, hopefully this patch fixes this problem.
Diffstat (limited to 'make/compilers')
1 files changed, 2 insertions, 2 deletions
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg
index 82294d0e87..f2d4233147 100644
--- a/make/compilers/gcc-target-default.cfg
+++ b/make/compilers/gcc-target-default.cfg
@@ -203,7 +203,7 @@ ${ARCH}/%.o: %.s
# Specify our own default rule for this to prevent having CFLAGS and
# CPPFLAGS being passed to linker
-${ARCH}/%: ${ARCH}/%.o
+${ARCH}/%$(EXEEXT): ${ARCH}/%.o
${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS}
# Make foo.rel from foo.o
@@ -211,7 +211,7 @@ ${ARCH}/%.rel: ${ARCH}/%.o
# create $(ARCH)/pgm from
$(RM) $@
$(CP) $< $@
$(CHMOD) +x $@