Explorar o código

make: fix glibc build error

Waldemar Brodkorb %!s(int64=6) %!d(string=hai) anos
pai
achega
685022ebae
Modificáronse 2 ficheiros con 15 adicións e 1 borrados
  1. 1 1
      package/make/Makefile
  2. 14 0
      package/make/patches/patch-configure_ac

+ 1 - 1
package/make/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		make
 PKG_VERSION:=		4.2.1
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_HASH:=		e40b8f018c1da64edd1cc9a6fce5fa63b2e707e404e20cad91fbae337c98a5b7
 PKG_DESCR:=		c/c++ code buildtool
 PKG_SECTION:=		dev/tools

+ 14 - 0
package/make/patches/patch-configure_ac

@@ -0,0 +1,14 @@
+--- make-4.2.1.orig/configure.ac	2016-06-06 12:27:31.000000000 +0000
++++ make-4.2.1/configure.ac	2018-02-28 20:57:40.797354623 +0000
+@@ -399,10 +399,9 @@ AC_CACHE_CHECK([if system libc has GNU g
+ #include <glob.h>
+ #include <fnmatch.h>
+ 
+-#define GLOB_INTERFACE_VERSION 1
+ #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
+ # include <gnu-versions.h>
+-# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
++# if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
+    gnu glob
+ # endif
+ #endif],