зеркало из https://github.com/mozilla/pjs.git
Fix bug 166614 (wrong linker flags for mozilla.exe on OS/2) by moving the MOZ_WINCONSOLE section of config.mk down so that LDFLAGS doesn't get clobbered. r=cls, a=asa.
This commit is contained in:
Родитель
37288dd2a4
Коммит
22601f7f46
|
@ -436,28 +436,6 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
# Set link flags according to whether we want a console.
|
||||
ifdef MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_WINCONSOLE),1)
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS := -Zlinker /PM:VIO -Zlinker /Stack:0x30000
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:CONSOLE
|
||||
endif
|
||||
else # MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
LDFLAGS += /PM:PM
|
||||
endif
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS := -Zlinker /PM:PM -Zlinker /Stack:0x30000
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:WINDOWS
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Personal makefile customizations go in these optional make include files.
|
||||
#
|
||||
|
@ -713,6 +691,28 @@ MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend
|
|||
MKDEPEND = $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX)
|
||||
endif
|
||||
|
||||
# Set link flags according to whether we want a console.
|
||||
ifdef MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_WINCONSOLE),1)
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS := -Zlinker /PM:VIO -Zlinker /Stack:0x30000
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:CONSOLE
|
||||
endif
|
||||
else # MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
LDFLAGS += /PM:PM
|
||||
endif
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS := -Zlinker /PM:PM -Zlinker /Stack:0x30000
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:WINDOWS
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Include any personal overrides the user might think are needed.
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче