зеркало из https://github.com/mozilla/gecko-dev.git
Bug 368854 - Use new compiler/linker flags added in VC8 to improve security, r=luser
This commit is contained in:
Родитель
1c53a11ba3
Коммит
c1f89b4189
|
@ -1860,6 +1860,9 @@ case "$target" in
|
|||
LIBXUL_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
|
||||
MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
|
||||
MOZ_XPCOM_OBSOLETE_LIBS='$(LIBXUL_DIST)/lib/xpcom_compat.lib'
|
||||
if test $_MSC_VER -ge 1400; then
|
||||
LDFLAGS="$LDFLAGS -NXCOMPAT -SAFESEH"
|
||||
fi
|
||||
fi
|
||||
MOZ_JPEG_LIBS='$(call EXPAND_LIBNAME_PATH,jpeg$(MOZ_BITS)$(VERSION_NUMBER),$(DEPTH)/jpeg)'
|
||||
MOZ_PNG_LIBS='$(call EXPAND_LIBNAME_PATH,png,$(DEPTH)/modules/libimg/png)'
|
||||
|
|
|
@ -142,6 +142,10 @@ LDFLAGS += \
|
|||
-NODEFAULTLIB:LIBC \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter-out 1700 1710,$(_MSC_VER)))
|
||||
LDFLAGS += -SAFESEH:NO
|
||||
endif
|
||||
|
||||
ifdef STATIC_LIBIDL
|
||||
LDFLAGS += -NODEFAULTLIB:MSVCRT
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче