Commit 2b9a4fe9 authored by Andrew Innes's avatar Andrew Innes

(EXTRA_LINK, LINK_FLAGS): Ensure base relocation

data is included, to enable profiling.
($(EMACS)): Map file not needed for emacs.exe.
parent f5a3c8c4
......@@ -37,6 +37,15 @@ LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I..\nt\inc
# From MSVC 5.0 onwards, it seem base relocation information is not included,
# at least in release builds. We need to ensure the reloc info is included
# in order to use the MSVC profiler.
!IF ($(_NMAKE_VER) == $(_NMAKE_VER_4))
EXTRA_LINK = -profile
EMACS = $(BLD)\emacs.exe
TEMACS = $(BLD)\temacs.exe
TEMACS_TMP = $(BLD)\temacs.bin
......@@ -61,7 +70,7 @@ TLASTLIB = $(BLD)\lastfile.lib
!if "$(BUILD_TYPE)" == "spd"
LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -pdb:$(BLD)\temacs.pdb -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\ -swaprun:net -swaprun:cd
LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\ -swaprun:net -swaprun:cd
LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\ -swaprun:net -swaprun:cd $(EXTRA_LINK)
......@@ -197,7 +206,6 @@ emacs: $(EMACS)
cd $(BLD)
$(MAKEDIR)\$(BLD)\temacs.exe -batch -l loadup dump
cd ..\..
......@@ -210,7 +218,6 @@ temacs: $(BLD) $(TEMACS)
..\nt\$(BLD)\addsection $(TEMACS_TMP) $(TEMACS) EMHEAP 16
# The resource file. NT 3.10 requires the use of cvtres; even though
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment