Skip to content

Instantly share code, notes, and snippets.

@adsr
Created October 3, 2023 23:40
Show Gist options
  • Save adsr/65a5fc4e8da23bebaa779d9ebcd30353 to your computer and use it in GitHub Desktop.
Save adsr/65a5fc4e8da23bebaa779d9ebcd30353 to your computer and use it in GitHub Desktop.
diff --git a/config.m4 b/config.m4
index 521dfbb..b9dfa85 100644
--- a/config.m4
+++ b/config.m4
@@ -8,7 +8,7 @@ if test "$PHP_INJECTION" != "no"; then
LIBSYMBOL=libinjection_is_sqli
PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
[
- PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $INJECTION_DIR, INJECTION_SHARED_LIBADD)
+ LDFLAGS="$LDFLAGS $INJECTION_DIR/libinjection.a"
AC_DEFINE(HAVE_INJECTIONLIB,1,[ ])
],[
AC_MSG_ERROR([wrong libinjection version or lib not found])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment