diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-05-31 13:35:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-05-31 13:35:08 +0000 |
commit | 6a8700de5fdb6d3f4cd8c108e049acb596bac231 (patch) | |
tree | f3688043d3188b8c2bb003968b1b1d91b837c089 /make/compilers/gcc-target-default.cfg | |
parent | Patch from Nick Simon <Nick.SIMON@syntegra.bt.co.uk> to make (diff) | |
download | rtems-6a8700de5fdb6d3f4cd8c108e049acb596bac231.tar.bz2 |
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to:
This is the diff to let gcc-target-default.cfg use LINK.c -Wl,-r
instead of LD -r for building *.rels.
BTW: gcc -r works but seems to be undocumented, however
as gcc -r -v shows it seems to works. Now I am using -Wl,-r :-)
Diffstat (limited to '')
-rw-r--r-- | make/compilers/gcc-target-default.cfg | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg index 0be680898c..fb5dfbad62 100644 --- a/make/compilers/gcc-target-default.cfg +++ b/make/compilers/gcc-target-default.cfg @@ -186,7 +186,7 @@ ${ARCH}/%.o: %.S # Make foo.rel from foo.o ${ARCH}/%.rel: ${ARCH}/%.o - ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^ + ${make-rel} # create $(ARCH)/pgm from pgm.sh ${ARCH}/%: %.sh @@ -289,7 +289,13 @@ ifndef LINKCMDS LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds endif - +ifeq ($(RTEMS_USE_GCC272),yes) define make-rel $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $^ endef +else +define make-rel + $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ + -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) -o $@ $^ +endef +endif |