components/php-5_2/php-sapi/patches-other/pear_pecl.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 06 Nov 2012 08:47:35 -0800
branchs11-update
changeset 2418 cd57f22892e0
parent 461 edabdd6aff23
permissions -rw-r--r--
15837888 clisp needs TPNO and license file modifications

--- pecl.ORIG	Tue Sep  9 19:45:00 2008
+++ pecl	Tue Sep  9 19:45:33 2008
@@ -25,4 +25,15 @@
   fi
 fi
 
+# define CC if not defined
+if test -x "/usr/bin/gcc"; then
+  CC="/usr/bin/gcc"
+  LD=$CC
+  export CC LD
+elif test -x "/usr/sfw/bin/gcc"; then
+  CC="/usr/sfw/bin/gcc"
+  LD=$CC
+  export CC LD
+fi
+
 exec $PHP -C -n -q $INCARG -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"