openbsd-ports/lang/php/7.0/patches/patch-aclocal_m4
sthen fa11ac230a Don't hardcode libstdc++, pass it in from LIBCXX. Fixes build of Apache module
on libc++ arches (otherwise the nonexistent -lstdc++ caused libtool to generate
a static library instead of shared .so module). ok robert@
2017-04-26 08:15:05 +00:00

15 lines
401 B
Plaintext

$OpenBSD: patch-aclocal_m4,v 1.1 2017/04/26 08:15:05 sthen Exp $
--- aclocal.m4.orig.port Tue Feb 14 13:50:47 2017
+++ aclocal.m4 Mon Apr 24 22:37:15 2017
@@ -762,7 +762,9 @@ AC_DEFUN([PHP_REQUIRE_CXX],[
if test -z "$php_cxx_done"; then
AC_PROG_CXX
AC_PROG_CXXCPP
- PHP_ADD_LIBRARY(stdc++)
+ for i in $LIBCXX; do
+ PHP_ADD_LIBRARY($i)
+ done
php_cxx_done=yes
fi
])