]> git.lizzy.rs Git - rust.git/commitdiff
Add commentary about -znoexecstack
authorBrian Anderson <banderson@mozilla.com>
Mon, 24 Oct 2011 02:07:55 +0000 (19:07 -0700)
committerBrian Anderson <banderson@mozilla.com>
Mon, 24 Oct 2011 02:07:55 +0000 (19:07 -0700)
mk/platform.mk

index c752fb026e203ed19e872fa08edf8c29d3e0fb78..312ea3bc566f678df5ddb8fd37ac7a74fc02e958 100644 (file)
@@ -31,6 +31,8 @@ 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
+  # -znoexecstack is here because librt is for some reason being created
+  # with executable stack and Fedora (or SELinux) doesn't like that (#798)
   CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive -Wl,-znoexecstack
   ifeq ($(CFG_CPUTYPE), x86_64)
     CFG_GCCISH_CFLAGS += -m32