forked from Imagelibrary/rtems
Yet another EXEEXT patch. This one is from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> and his comments are below: Joel, obviously you did apply my previous patch to gcc-target-default.cfg -- This should have been gcc.cfg (gcc-target-default.cfg should NOT contain any EXEEXT).
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}/%$(EXEEXT): ${ARCH}/%.o
|
||||
${ARCH}/%: ${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}/%$(EXEEXT): %.sh
|
||||
${ARCH}/%: %.sh
|
||||
$(RM) $@
|
||||
$(CP) $< $@
|
||||
$(CHMOD) +x $@
|
||||
|
||||
@@ -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}/%$(EXEEXT): ${ARCH}/%.o
|
||||
${ARCH}/%: ${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}/%$(EXEEXT): %.sh
|
||||
${ARCH}/%: %.sh
|
||||
$(RM) $@
|
||||
$(CP) $< $@
|
||||
$(CHMOD) +x $@
|
||||
|
||||
Reference in New Issue
Block a user