Permalink
Browse files

phpize: don't add static lib directoly. use PHP_ADD_LIBLARY

  • Loading branch information...
1 parent 5f495c2 commit fe4cb28947a9e2cafafb98db6c97c87187d69a7b @chobie chobie committed Aug 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 config.m4
View
@@ -25,7 +25,9 @@ if test $PHP_GIT2 != "no"; then
PHP_ADD_INCLUDE([$ext_srcdir/libgit2/include])
- CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libgit2/build/libgit2.a"
+ CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement"
+ PHP_ADD_LIBPATH($ext_srcdir/libgit2/build, GIT2_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(git2,, GIT2_SHARED_LIBADD)
PHP_SUBST([CFLAGS])
ifdef([PHP_ADD_EXTENSION_DEP],

0 comments on commit fe4cb28

Please sign in to comment.