22535919 Prompting for AI manifest failed - Memory fault - related to libffi
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 13 Jan 2016 10:21:51 -0800
changeset 5265 444c51b844e7
parent 5264 752ed0eca595
child 5266 028461eee75e
22535919 Prompting for AI manifest failed - Memory fault - related to libffi
components/libffi/Makefile
--- a/components/libffi/Makefile	Wed Jan 13 09:48:43 2016 -0800
+++ b/components/libffi/Makefile	Wed Jan 13 10:21:51 2016 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
 #
 
 COMPILER =	gcc
@@ -43,6 +43,11 @@
 
 CC +=		$(CC_BITS)
 
+CFLAGS += -DFFI_MMAP_EXEC_WRIT=1
+
+CONFIGURE_OPTIONS += --enable-raw-api=no
+CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
+
 ASLR_MODE = $(ASLR_ENABLE)
 
 configure:	$(CONFIGURE_32_and_64)
@@ -56,3 +61,4 @@
 system-test:    $(NO_TESTS)
 
 REQUIRED_PACKAGES += system/library
+REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime