Skip to content

Commit

Permalink
phpize: don't add static lib directoly. use PHP_ADD_LIBLARY
Browse files Browse the repository at this point in the history
  • Loading branch information
chobie committed Aug 8, 2012
1 parent 5f495c2 commit fe4cb28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit fe4cb28

Please sign in to comment.