Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit fe4cb28947a9e2cafafb98db6c97c87187d69a7b 1 parent 5f495c2
Shuhei Tanuma authored August 09, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  config.m4
4  config.m4
@@ -25,7 +25,9 @@ if test $PHP_GIT2 != "no"; then
25 25
 
26 26
 	PHP_ADD_INCLUDE([$ext_srcdir/libgit2/include])
27 27
 
28  
-	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"
  28
+	CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement"
  29
+	PHP_ADD_LIBPATH($ext_srcdir/libgit2/build, GIT2_SHARED_LIBADD)
  30
+	PHP_ADD_LIBRARY(git2,, GIT2_SHARED_LIBADD)
29 31
 	PHP_SUBST([CFLAGS])
30 32
 
31 33
 	ifdef([PHP_ADD_EXTENSION_DEP],

0 notes on commit fe4cb28

Please sign in to comment.
Something went wrong with that request. Please try again.