php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55269
Patch php-dtrace-patch revision 2011-07-22 19:20 UTC by samm at os2 dot kiev dot ua

Patch php-dtrace-patch for Compile Failure Bug #55269

Patch version 2011-07-22 19:20 UTC

Return to Bug #55269 | Download this patch
Patch Revisions:

Developer: samm@os2.kiev.ua

Index: configure.in
===================================================================
--- configure.in	(revision 313601)
+++ configure.in	(working copy)
@@ -956,6 +956,11 @@
       Zend/zend_dtrace.c Zend/zend.c])
     AC_DEFINE(HAVE_DTRACE, 1, [Whether to enable DTrace support])
     PHP_SUBST(PHP_DTRACE_OBJS)
+    case $host_alias in
+         *-freebsd*)
+         EXTRA_LIBS="-lelf $EXTRA_LIBS"
+         ;;
+    esac
   ], [
     AC_MSG_ERROR([Cannot find sys/sdt.h which is required for DTrace support])
   ])
Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 313601)
+++ acinclude.m4	(working copy)
@@ -2923,7 +2923,7 @@
 
 dnl Add providerdesc.o into global objects when needed
   case $host_alias in
-  *solaris*)
+  *solaris*|*freebsd*)
     PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS [$]ac_bdir[$]ac_provsrc.o"
     ;;
   esac
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 03:01:32 2024 UTC