25427170 event-config.h definitions are valid just for 64bit apps
authorRich Burridge <rich.burridge@oracle.com>
Fri, 07 Apr 2017 10:04:47 -0700
changeset 7848 75d3cd4c779b
parent 7847 ec4c46e50642
child 7849 fc031320bbca
25427170 event-config.h definitions are valid just for 64bit apps
components/libevent/Makefile
--- a/components/libevent/Makefile	Tue Mar 14 02:44:36 2017 -0700
+++ b/components/libevent/Makefile	Fri Apr 07 10:04:47 2017 -0700
@@ -54,6 +54,12 @@
 CONFIGURE_OPTIONS	+= CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS	+= --disable-static
 
+# 32 and 64 bits event-config.h headers need to be merged to the final one.
+EVENTH=include/event2/event-config.h
+$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
+	-diff -D __$(MACH64) $(BUILD_DIR_32)/$(EVENTH) \
+	  $(BUILD_DIR_64)/$(EVENTH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(EVENTH);
+
 # Get correct libevent-2.0.so.5 from the proto area.
 TEST_LIBPATH.32 =	$(PROTOUSRLIBDIR)
 TEST_LIBPATH.64 =	$(PROTOUSRLIBDIR64)