forked from Imagelibrary/rtems
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. 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.
This commit is contained in:
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user