make: fix glob building failure for uClibc
PATCH 1/1 make: fix glob building failure for uClibc
Before declaring externel references to glob64 and globfree64, check if uClibC has GNU glob support
fixes:
http://autobuild.buildroot.net/results/22927ef1d6c2eeba02361f4b041fe3ee8d5c4704/
--- package/make/make-uClib-glob.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/make/make-uClib-glob.patch
package/make/make-uClib-glob.patch new file +18 -0
@@ -0,0 +1,18 @@ +diff -Nurp make-3.82_orig/glob/glob.h make-3.82/glob/glob.h +--- make-3.82_orig/glob/glob.h 2014-07-02 17:47:46.145132289 +0530 ++++ make-3.82/glob/glob.h 2014-07-02 17:50:10.545132374 +0530 +@@ -186,12 +186,14 @@ extern int glob __P ((__const char *__pa + /* Free storage allocated in PGLOB by a previous `glob' call. */ + extern void globfree __P ((glob_t *__pglob)); + #else ++#if defined __USE_GNU && defined __UCLIBC_HAS_GNU_GLOB__ + extern int glob __P ((__const char *__pattern, int __flags, + int (*__errfunc) (__const char *, int), + glob_t *__pglob)) __asm__ ("glob64"); + + extern void globfree __P ((glob_t *__pglob)) __asm__ ("globfree64"); + #endif ++#endif + + + #ifdef _GNU_SOURCE
Signature · 1 line
1.7.9.5
PATCH 1/1 make: fix glob building failure for uClibc
Dear Yuvaraj Patil,
Quoted 11 lines · Yuvaraj Patil
Before declaring externel references to glob64 and globfree64, check if uClibC has GNU glob support
fixes:
http://autobuild.buildroot.net/results/22927ef1d6c2eeba02361f4b041fe3ee8d5c4704/Signed-off-by Yuvaraj Patil <[email protected]>--- package/make/make-uClib-glob.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/make/make-uClib-glob.patch
Thanks a lot for this patch. However, there is a new 'make' release (4.0) that requires fork(), so it won't work on !MMU platforms such as Blackfin. So I've committed
http://git.buildroot.net/buildroot/commit/?id=1aa42ad4aed013c03d1e17f4cfe2ace2194f423d,
which makes make not available on Blackfin, and therefore "fixes" the problem.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com