Changeset 9e7d42dd in rtems for make


Ignore:
Timestamp:
May 14, 1999, 4:26:47 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
577c4080
Parents:
fcf17a4
Message:

Added C++ linking rule from Rosimildo DaSilva? <rdasilva@…>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/custom/pc386.cfg

    rfcf17a4 r9e7d42dd  
    9090            -o $(basename $@).obj \
    9191            $(LINK_OBJS) $(LINK_LIBS)
    92         $(OBJCOPY) -O a.out-i386 \
     92        $(OBJCOPY) -O elf32-i386 \
    9393            --remove-section=.rodata \
    9494            --remove-section=.comment \
     
    104104            -o $(basename $@).coff $(LINK_OBJS) $(LINK_LIBS)
    105105endef
     106define make-cxx-exe
     107        $(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
     108            -Wl,--oformat,elf32-i386 -o $(basename $@).obj \
     109            -o $(basename $@).obj \
     110            $(LINK_OBJS) $(LINK_LIBS)
     111        $(OBJCOPY) -O elf32-i386 \
     112            --remove-section=.rodata \
     113            --remove-section=.comment \
     114            --remove-section=.note \
     115            --strip-unneeded $(basename $@).obj $@
     116        $(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin
     117        $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
     118          $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
     119        $(NM) -g -n $(basename $@).obj > $(basename $@).num
     120        $(SIZE) $(basename $@).obj
     121        $(INSTALL_VARIANT) -m 555 $(basename $@).bt ${PROJECT_RELEASE}/BootImgs
     122        $(CXX) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
     123            -o $(basename $@).coff $(LINK_OBJS) $(LINK_LIBS)
     124endef
    106125endif
    107126
Note: See TracChangeset for help on using the changeset viewer.