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
|