comparison make/linux/makefiles/vm.make @ 3305:dddc5753c53a

7019808: build fails on Fedora 14: SELinux run-time check: execution of stack in libjvm.so Summary: executable flag is set in the elf header of libjvm.so during build, instruct ld to don't do it. Reviewed-by: acorn, phh
author dsamersoff
date Fri, 29 Apr 2011 21:13:00 +0400
parents 3449f5e02cc4
children be4ca325525a da0999c4b733
comparison
equal deleted inserted replaced
3304:0cddebc420d8 3305:dddc5753c53a
99 CFLAGS += $(CFLAGS/NOEX) 99 CFLAGS += $(CFLAGS/NOEX)
100 100
101 # Extra flags from gnumake's invocation or environment 101 # Extra flags from gnumake's invocation or environment
102 CFLAGS += $(EXTRA_CFLAGS) 102 CFLAGS += $(EXTRA_CFLAGS)
103 LFLAGS += $(EXTRA_CFLAGS) 103 LFLAGS += $(EXTRA_CFLAGS)
104
105 # Don't set excutable bit on stack segment
106 # the same could be done by separate execstack command
107 LFLAGS += -Xlinker -z -Xlinker noexecstack
104 108
105 LIBS += -lm -ldl -lpthread 109 LIBS += -lm -ldl -lpthread
106 110
107 # By default, link the *.o into the library, not the executable. 111 # By default, link the *.o into the library, not the executable.
108 LINK_INTO$(LINK_INTO) = LIBJVM 112 LINK_INTO$(LINK_INTO) = LIBJVM