Changeset 6a8700d in rtems


Ignore:
Timestamp:
May 31, 2000, 1:35:08 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
fe4edc8
Parents:
75061954
Message:

Patch from Ralf Corsepius <corsepiu@…> 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 :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/compilers/gcc-target-default.cfg

    r75061954 r6a8700d  
    187187# Make foo.rel from foo.o
    188188${ARCH}/%.rel: ${ARCH}/%.o
    189         ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^
     189        ${make-rel}
    190190
    191191# create $(ARCH)/pgm from pgm.sh
     
    290290endif
    291291
    292 
     292ifeq ($(RTEMS_USE_GCC272),yes)
    293293define make-rel
    294294        $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $^
    295295endef
     296else
     297define make-rel
     298        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
     299          -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) -o $@ $^
     300endef
     301endif
Note: See TracChangeset for help on using the changeset viewer.