Changeset 214


Ignore:
Timestamp:
May 22, 2003, 12:34:46 AM (22 years ago)
Author:
zap
Message:

o Moved ldstub.bin to src/ld and added the appropiate build rules.
o Removed -fomit-frame-pointer from optimization options since

a) it is incompatible with -pg (profiling), and
b) -fomit-frame-pointer is broken in every second gcc release.

Location:
trunk/src/emx
Files:
2 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.12 to 1.13
    r213 r214  
    5252CFLAGS = -Wall -mstack-arg-probe -Zmt $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND)
    5353# The additional C compiler flags for different build modes
    54 CFLAGS.opt = -s -O3 -fomit-frame-pointer
     54CFLAGS.opt = -s -O3
    5555CFLAGS.dbg = -g
    5656CFLAGS.aout =
     
    7878LDFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(LDFLAGS.$x))
    7979# How to link a .exe file
    80 DO.LINK.exe = $(LD) $(strip $(LDFLAGS) $(filter-out -l%,$1)) -o $@ $(^O) $(^LIB) $(filter -l%,$1)
     80DO.LINK.exe = $(LD) $(strip $(LDFLAGS) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1)
    8181# How to link a .dll file
    8282DO.LINK.dll = $(LD) $(strip $(LDFLAGS.DLL) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1)
     
    133133^DEF = $(filter %.def,$^)
    134134# How to filter the libraries from $^
    135 ^LIB = $(filter %.$(if $(findstring omf,$(.TKIND)),lib,a),$^)
     135^LIB = $(strip $(filter %.a,$^) $(filter %.lib,$^))
    136136# This function finds a tool: if it has been already built, prefer it
    137137FINDTOOL = $(firstword $(wildcard $.$(TOOLFMT)/$1$E) $(wildcard $(OUT)dbg/aout/$1$E) $1)
  • trunk/src/emx/src/ld/ld.smak

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r213 r214  
    1313.TLDF   := -liberty
    1414include mkexe.smak
     15
     16.TARGET := ldstub.bin
     17.TKIND  := omf
     18.TSRC.386 := src/ld/ldstub.asm
     19.TSRC   := $(.TSRC.$(CPU))
     20.TAF.src/ld/ldstub.asm = -DMICRO
     21.TDEP   := @O@os2$A src/ld/ldstub.def
     22.TLDF   := -nostdlib
     23include mkexe.smak
Note: See TracChangeset for help on using the changeset viewer.