Make sure librustrt.so is linked with a non-executable stack.

Fixes #798.
This commit is contained in:
Austin Seipp 2011-10-23 20:52:31 -05:00 committed by Brian Anderson
parent 1703e9ec89
commit 7a8e12ca6d

View File

@ -31,7 +31,7 @@ ifneq ($(findstring linux,$(CFG_OSTYPE)),)
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -ldl -lpthread -lrt
CFG_GCCISH_DEF_FLAG := -Wl,--export-dynamic,--dynamic-list=
CFG_GCCISH_PRE_LIB_FLAGS := -Wl,-whole-archive
CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive
CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive -Wl,-znoexecstack
ifeq ($(CFG_CPUTYPE), x86_64)
CFG_GCCISH_CFLAGS += -m32
CFG_GCCISH_LINK_FLAGS += -m32