22471212 daq fails to build with Studio 12.5 beta
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 08 Sep 2016 12:41:54 -0700
changeset 6865 1cc50ab79b8c
parent 6864 45128c94429d
child 6866 4c1935f5ec9a
22471212 daq fails to build with Studio 12.5 beta 22481259 snort fails to build with Studio 12.5 beta
components/daq/Makefile
components/snort/Makefile
--- a/components/daq/Makefile	Thu Sep 08 09:45:54 2016 -0700
+++ b/components/daq/Makefile	Thu Sep 08 12:41:54 2016 -0700
@@ -47,6 +47,11 @@
 CONFIGURE_OPTIONS +=	--disable-ipfw-module
 CONFIGURE_OPTIONS +=    --enable-static=no
 
+# cheesy, but if we turn off visibility then it doesn't
+# save the CFLAGS right and then nulls them.
+CONFIGURE_OPTIONS +=	"gl_cv_cc_visibility=no"
+CONFIGURE_OPTIONS +=	gl_save_CFLAGS="$(CFLAGS)"
+
 REQUIRED_PACKAGES += developer/lexer/flex
 REQUIRED_PACKAGES += developer/parser/bison
 REQUIRED_PACKAGES += shell/ksh93
--- a/components/snort/Makefile	Thu Sep 08 09:45:54 2016 -0700
+++ b/components/snort/Makefile	Thu Sep 08 12:41:54 2016 -0700
@@ -55,6 +55,11 @@
 CONFIGURE_OPTIONS +=	--enable-ipv6
 CONFIGURE_OPTIONS +=	--disable-static-daq
 
+# cheesy, but if we turn off visibility then it doesn't
+# save the CFLAGS right and then nulls them.
+CONFIGURE_OPTIONS +=   "gl_cv_cc_visibility=no"
+CONFIGURE_OPTIONS +=   gl_save_CFLAGS="$(CFLAGS)"
+
 # Move snort shared objects to 64-bit path to stop pkglint bitching.
 COMPONENT_POST_INSTALL_ACTION += \
 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \