From cc8a388aace9394a096a44262c79ecf69023456b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Jul 1998 14:13:59 +0000 Subject: 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. --- make/compilers/gcc-target-default.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'make/compilers') 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 ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^ # create $(ARCH)/pgm from pgm.sh -${ARCH}/%: %.sh +${ARCH}/%$(EXEEXT): %.sh $(RM) $@ $(CP) $< $@ $(CHMOD) +x $@ -- cgit v1.2.3