build system: use -fstack-protector… during linking, too

This commit is contained in:
Moritz Bunkus 2015-08-11 16:39:20 +02:00
parent 59a1651ce1
commit 541cbfe3ec

View File

@ -126,6 +126,7 @@ def setup_globals
ldflags += " -Llib/libebml/src -Llib/libmatroska/src" if c?(:EBML_MATROSKA_INTERNAL)
ldflags += " #{c(:EXTRA_LDFLAGS)} #{c(:PROFILING_LIBS)} #{c(:USER_LDFLAGS)} #{c(:LDFLAGS_RPATHS)} #{c(:BOOST_LDFLAGS)}"
ldflags += " -Wl,--dynamicbase,--nxcompat" if c?(:MINGW)
ldflags += " #{c(:FSTACK_PROTECTOR)}"
windres = c?(:USE_WXWIDGETS) ? c(:WXWIDGETS_INCLUDES) : "-DNOWXWIDGETS"
windres += " -DMINGW_PROCESSOR_ARCH_AMD64=1" if c(:MINGW_PROCESSOR_ARCH) == 'amd64'