24914599 php should not rely on path for gcc
authorNorm Jacobs <Norm.Jacobs@Oracle.COM>
Tue, 18 Oct 2016 16:17:47 -0700
changeset 7125 cb5d17e1b8bc
parent 7124 3e0b5da5d4d1
child 7126 c0715e78cafb
24914599 php should not rely on path for gcc
components/php/php56/Makefile
--- a/components/php/php56/Makefile	Tue Oct 18 14:50:56 2016 -0700
+++ b/components/php/php56/Makefile	Tue Oct 18 16:17:47 2016 -0700
@@ -41,6 +41,9 @@
 include $(WS_MAKE_RULES)/common.mk
 include $(PHP_TOP_DIR)/php.mk
 
+# need GCC_ROOT/bin for configure, usr/sbin for dtrace 
+export PATH=$(GCC_ROOT)/bin:$(USRBINDIR):$(USRSBINDIR):$(GNUBIN)
+
 # We patch configure.in to allow building just modules (no SAPI's), e.g. intl.
 # Since we are sharing the source, regenerate configure here.
 COMPONENT_PREP_ACTION += (cd $(SOURCE_DIR) ; autoreconf) ;
@@ -48,7 +51,6 @@
 include enable-extensions.mk
 
 CONFIGURE_OPTIONS += --enable-dtrace
-COMPONENT_BUILD_ENV += PATH="$(PATH):$(USRSBINDIR)"
 
 # Without this, the the build seems to interrogate GCC for potential library
 # search path information and then embed it into the RUNPATH of selected ELF