7019808: build fails on Fedora 14: SELinux run-time check: execution of stack in libjvm.so
Executable flag is set in the elf header of libjvm.so during build, instruct ld to don't do it. Reviewed-by: acorn, phh
This commit is contained in:
parent
7d7755b8a4
commit
b0269509f1
@ -102,6 +102,10 @@ CFLAGS += $(CFLAGS/NOEX)
|
|||||||
CFLAGS += $(EXTRA_CFLAGS)
|
CFLAGS += $(EXTRA_CFLAGS)
|
||||||
LFLAGS += $(EXTRA_CFLAGS)
|
LFLAGS += $(EXTRA_CFLAGS)
|
||||||
|
|
||||||
|
# Don't set excutable bit on stack segment
|
||||||
|
# the same could be done by separate execstack command
|
||||||
|
LFLAGS += -Xlinker -z -Xlinker noexecstack
|
||||||
|
|
||||||
LIBS += -lm -ldl -lpthread
|
LIBS += -lm -ldl -lpthread
|
||||||
|
|
||||||
# By default, link the *.o into the library, not the executable.
|
# By default, link the *.o into the library, not the executable.
|
||||||
|
Loading…
Reference in New Issue
Block a user