Fwd: Re: hotspot build problems
Per Bothner
per.bothner at oracle.com
Mon Jan 3 23:42:41 UTC 2011
There were some recent changes to make/linux/makefiles/launcher.make,
so my patch no longer applies. Here is an updated patch.
I've verified that the patch is still needed (on Fedora 14 with
SELinux enabled), and that it is "complete", in the sense that
top-level make clean && make completes successfully.
--
--Per Bothner
per.bothner at oracle.com per at bothner.com http://per.bothner.com/
-------------- next part --------------
diff --git a/make/linux/makefiles/launcher.make b/make/linux/makefiles/launcher.make
--- a/make/linux/makefiles/launcher.make
+++ b/make/linux/makefiles/launcher.make
@@ -84,6 +84,17 @@
$(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK)
$(QUIETLY) $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(OBJS) $(LIBS_LAUNCHER)
$(QUIETLY) $(LINK_LAUNCHER/POST_HOOK)
+ $(QUIETLY) if [ \"$(CROSS_COMPILE_ARCH)\" = \"\" ] ; then \
+ if [ -x /usr/sbin/selinuxenabled ] ; then \
+ /usr/sbin/selinuxenabled; \
+ if [ $$? = 0 ] ; then \
+ /usr/bin/chcon -t execmem_exec_t $@; \
+ if [ $$? != 0 ]; then \
+ echo "ERROR: Cannot chcon $@"; \
+ fi \
+ fi \
+ fi \
+ fi
$(LAUNCHER): $(LAUNCHER_SCRIPT)
More information about the build-dev
mailing list