php7: fix bind_textdomain_codeset detection (refs #4250)
authorMichael Heimpold <mhei@heimpold.de>
Tue, 11 Apr 2017 21:31:34 +0000 (23:31 +0200)
committerMichael Heimpold <mhei@heimpold.de>
Tue, 11 Apr 2017 21:31:37 +0000 (23:31 +0200)
The gettext extension is only useful when linked against libintl-full
package, however, the detection did not work sucessfully. This patch
by @Dimazhan fixes this.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lang/php7/Makefile
lang/php7/patches/1006-fix-gettext.patch [new file with mode: 0644]

index 73ced0673e18b938c684b133f9b1acf92a2030df..f9ef6a1664ba9a8811dd349d837574b4a8cf0528 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=php
 PKG_VERSION:=7.1.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
 
diff --git a/lang/php7/patches/1006-fix-gettext.patch b/lang/php7/patches/1006-fix-gettext.patch
new file mode 100644 (file)
index 0000000..05d1ce9
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/ext/gettext/config.m4
++++ b/ext/gettext/config.m4
+@@ -32,3 +32,2 @@
+   )
+-  LDFLAGS=$O_LDFLAGS
+@@ -48,3 +48,4 @@
+   AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, bind_textdomain_codeset,  [AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET, 1, [ ])])
++  LDFLAGS=$O_LDFLAGS
+   
+ fi