зеркало из https://github.com/mozilla/pjs.git
Link generated .res files into mingw builds.
Use -mwindows when linking GUI mingw programs. Bug #203443 r=leaf sr=bryner
This commit is contained in:
Родитель
8216341e1a
Коммит
1f93d3bd4e
|
@ -829,9 +829,9 @@ ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH))
|
||||||
$(LD) /NOLOGO /OUT:$@ /PDB:$(PDBFILE) $(WIN32_EXE_LDFLAGS) $(LDFLAGS) $(PROGOBJS) $(RESFILE) $(LIBS) $(EXTRA_LIBS) $(OS_LIBS)
|
$(LD) /NOLOGO /OUT:$@ /PDB:$(PDBFILE) $(WIN32_EXE_LDFLAGS) $(LDFLAGS) $(PROGOBJS) $(RESFILE) $(LIBS) $(EXTRA_LIBS) $(OS_LIBS)
|
||||||
else
|
else
|
||||||
ifeq ($(CPP_PROG_LINK),1)
|
ifeq ($(CPP_PROG_LINK),1)
|
||||||
$(CCC) -o $@ $(CXXFLAGS) $(WRAP_MALLOC_CFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) $(PROFILER_LIBS) $(EXE_DEF_FILE)
|
$(CCC) -o $@ $(CXXFLAGS) $(WRAP_MALLOC_CFLAGS) $(PROGOBJS) $(RESFILE) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) $(PROFILER_LIBS) $(EXE_DEF_FILE)
|
||||||
else # ! CPP_PROG_LINK
|
else # ! CPP_PROG_LINK
|
||||||
$(CC) -o $@ $(CFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(EXE_DEF_FILE)
|
$(CC) -o $@ $(CFLAGS) $(PROGOBJS) $(RESFILE) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(EXE_DEF_FILE)
|
||||||
endif # CPP_PROG_LINK
|
endif # CPP_PROG_LINK
|
||||||
endif # WINNT && !GNU_CC
|
endif # WINNT && !GNU_CC
|
||||||
endif # OS2
|
endif # OS2
|
||||||
|
@ -853,14 +853,14 @@ ifdef RESFILE
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(HOST_PROGRAM): $(HOST_PROGOBJS) $(HOST_EXTRA_DEPS) Makefile Makefile.in
|
$(HOST_PROGRAM): $(HOST_PROGOBJS) $(HOST_EXTRA_DEPS) $(RESFILE) Makefile Makefile.in
|
||||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||||
$(LD) -OUT:$@ $(LDFLAGS) $(HOST_OBJS) $(HOST_LIBS) $(EXTRA_LIBS) /ST:0x100000
|
$(LD) -OUT:$@ $(LDFLAGS) $(HOST_OBJS) $(HOST_LIBS) $(EXTRA_LIBS) /ST:0x100000
|
||||||
else
|
else
|
||||||
ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH))
|
ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH))
|
||||||
$(HOST_LD) /NOLOGO /OUT:$@ /PDB:$(PDBFILE) $(HOST_OBJS) $(WIN32_EXE_LDFLAGS) $(HOST_LIBS) $(EXTRA_LIBS)
|
$(HOST_LD) /NOLOGO /OUT:$@ /PDB:$(PDBFILE) $(HOST_OBJS) $(RESFILE) $(WIN32_EXE_LDFLAGS) $(HOST_LIBS) $(EXTRA_LIBS)
|
||||||
else
|
else
|
||||||
$(HOST_CC) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS)
|
$(HOST_CC) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(RESFILE) $(HOST_LIBS) $(HOST_EXTRA_LIBS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -75,19 +75,6 @@ LOCAL_INCLUDES = -I$(srcdir)
|
||||||
|
|
||||||
OS_LIBS += $(call EXPAND_LIBNAME,ole32 comdlg32 shell32 version)
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 comdlg32 shell32 version)
|
||||||
|
|
||||||
#
|
|
||||||
# Control the default heap size.
|
|
||||||
# This is the heap returned by GetProcessHeap().
|
|
||||||
# As we use the CRT heap, the default size is too large and wastes VM.
|
|
||||||
#
|
|
||||||
# The default heap size is 1MB on Win32.
|
|
||||||
# The heap will grow if need be.
|
|
||||||
#
|
|
||||||
# Set it to 256k. See bug 127069.
|
|
||||||
#
|
|
||||||
LDFLAGS += /HEAP:0x40000
|
|
||||||
|
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
include $(topsrcdir)/config/config.mk
|
||||||
|
|
||||||
# Force applications to be built non-statically
|
# Force applications to be built non-statically
|
||||||
|
@ -115,6 +102,24 @@ endif # BUILD_STATIC_LIBS
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
|
#
|
||||||
|
# Control the default heap size.
|
||||||
|
# This is the heap returned by GetProcessHeap().
|
||||||
|
# As we use the CRT heap, the default size is too large and wastes VM.
|
||||||
|
#
|
||||||
|
# The default heap size is 1MB on Win32.
|
||||||
|
# The heap will grow if need be.
|
||||||
|
#
|
||||||
|
# Set it to 256k. See bug 127069.
|
||||||
|
#
|
||||||
|
ifndef GNU_CC
|
||||||
|
LDFLAGS += /HEAP:0x40000
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Get rid of console window
|
||||||
|
ifdef GNU_CC
|
||||||
|
LDFLAGS += -mwindows
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef BUILD_STATIC_LIBS
|
ifdef BUILD_STATIC_LIBS
|
||||||
include $(topsrcdir)/config/static-rules.mk
|
include $(topsrcdir)/config/static-rules.mk
|
||||||
|
|
|
@ -117,6 +117,10 @@ endif
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifeq ($(OS_ARCH),WINNT)
|
||||||
RESFILE = viewer.res
|
RESFILE = viewer.res
|
||||||
EXTRA_DSO_LIBS += xpwidgets_s dbgrobot widget_windows
|
EXTRA_DSO_LIBS += xpwidgets_s dbgrobot widget_windows
|
||||||
|
# Get rid of console window
|
||||||
|
ifdef GNU_CC
|
||||||
|
LDFLAGS += -mwindows
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),OS2)
|
ifeq ($(OS_ARCH),OS2)
|
||||||
|
|
|
@ -330,6 +330,10 @@ ifeq ($(OS_ARCH),WINNT)
|
||||||
ifndef GNU_CC
|
ifndef GNU_CC
|
||||||
LDFLAGS += /HEAP:0x40000
|
LDFLAGS += /HEAP:0x40000
|
||||||
endif
|
endif
|
||||||
|
# Get rid of console window
|
||||||
|
ifdef GNU_CC
|
||||||
|
LDFLAGS += -mwindows
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче