diff options
author | Remi Collet <remi@remirepo.net> | 2018-09-04 10:16:04 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-09-04 10:16:04 +0200 |
commit | 2b95092863287791238d1d27f73553018abb6a66 (patch) | |
tree | a60feba684f435adeb27540aadb7dc336c9df1db /38.patch | |
parent | 46056001adbe22d3d727edc39dcb520aa44e37e6 (diff) |
fix libraries load order, using patch from https://github.com/bukka/php-fann/pull/38
Diffstat (limited to '38.patch')
-rw-r--r-- | 38.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/38.patch b/38.patch new file mode 100644 index 0000000..e6197f2 --- /dev/null +++ b/38.patch @@ -0,0 +1,33 @@ +From a5ca783eb121e2e467d70e576dda75dcba5f8ba7 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Tue, 4 Sep 2018 09:52:04 +0200 +Subject: [PATCH] fix libraries link order + +--- + config.m4 | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/config.m4 b/config.m4 +index da00fea..e00bfdb 100644 +--- a/config.m4 ++++ b/config.m4 +@@ -34,16 +34,16 @@ if test "$PHP_FANN" != "no"; then + + LIBNAME=fann + LIBSYMBOL=fann_set_user_data ++ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FANN_DIR/$PHP_LIBDIR, FANN_SHARED_LIBADD) ++ PHP_ADD_LIBRARY(m) + + PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, + [ +- PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FANN_DIR/$PHP_LIBDIR, FANN_SHARED_LIBADD) +- AC_CHECK_LIB($LIBNAME,[fann_copy],[ AC_DEFINE(HAVE_FANN_2_2,1,[Fann library version 2.2]) ],[],[-lm]) ++ AC_CHECK_LIB($LIBNAME,[fann_copy],[ AC_DEFINE(HAVE_FANN_2_2,1,[Fann library version 2.2]) ],[],[]) + AC_DEFINE(HAVE_FANN,1,[Fann library found]) + ],[ + AC_MSG_ERROR([wrong libfann version (you need at least version 2.1) or lib not found]) + ],[ +- -L$FANN_DIR/$PHP_LIBDIR -lm + ]) + + PHP_SUBST(FANN_SHARED_LIBADD) |