Merge pull request #25 from remicollet/issue-css

fix linker command
This commit is contained in:
goodspb 2020-06-20 20:21:07 +08:00 committed by GitHub
commit 7d60446891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,9 +32,7 @@ if test "$PHP_PDLIB" != "no"; then
src/cnn_face_detection.cc " src/cnn_face_detection.cc "
AC_MSG_CHECKING(for pkg-config) AC_MSG_CHECKING(for pkg-config)
if test ! -f "$PKG_CONFIG"; then AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
PKG_CONFIG=`which pkg-config`
fi
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists dlib-1; then if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists dlib-1; then
if $PKG_CONFIG dlib-1 --atleast-version 19.00; 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_LIBLINE($LIBDLIB_LIBDIR, PDLIB_SHARED_LIBADD)
PHP_EVAL_INCLINE($LIBDLIB_CFLAGS) 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 fi