From 24d12358f20ffdbdcab1e0dfaede8a3a5a811d00 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 20 Jun 2020 08:08:27 +0200 Subject: [PATCH] fix linker command --- config.m4 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config.m4 b/config.m4 index 7e990f3..5b3872c 100644 --- a/config.m4 +++ b/config.m4 @@ -32,9 +32,7 @@ if test "$PHP_PDLIB" != "no"; then src/cnn_face_detection.cc " AC_MSG_CHECKING(for pkg-config) - if test ! -f "$PKG_CONFIG"; then - PKG_CONFIG=`which pkg-config` - fi + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists dlib-1; then if $PKG_CONFIG dlib-1 --atleast-version 19.00; then @@ -51,5 +49,5 @@ if test "$PHP_PDLIB" != "no"; then PHP_EVAL_LIBLINE($LIBDLIB_LIBDIR, PDLIB_SHARED_LIBADD) PHP_EVAL_INCLINE($LIBDLIB_CFLAGS) - PHP_NEW_EXTENSION(pdlib, $pdlib_src_files, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) + PHP_NEW_EXTENSION(pdlib, $pdlib_src_files, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, cxx) fi