Blame view

buildroot/buildroot-2016.08.1/package/util-linux/0001-build-sys-fix-uClibc-ng-scanf-check.patch 1.03 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  From bac7fbdb2d141879526ca4342d56d2c749ba8af5 Mon Sep 17 00:00:00 2001
  From: Waldemar Brodkorb <wbx@uclibc-ng.org>
  Date: Fri, 3 Jun 2016 04:23:28 +0200
  Subject: [PATCH] build-sys: fix uClibc-ng scanf check
  
  uClibc-ng tries to be compatible with GNU libc and defines
  __GLIBC__ and pretend to be version 2.2.
  We once changed it to 2.10, but then some hard to fix problems
  in different software packages (gcc) occured.
  It would be better if we disable the special GNU libc checks
  for uClibc-ng here. uClibc-ng implements the required scanf
  functionality.
  
  Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
  ---
   configure.ac | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
  
  diff --git a/configure.ac b/configure.ac
  index 3ba723f..ec197ee 100644
  --- a/configure.ac
  +++ b/configure.ac
  @@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
        #include <stdio.h>
        #include <unistd.h>
   
  -     #ifdef __GLIBC__
  +     #if defined(__GLIBC__) && !defined(__UCLIBC__)
   
        #if !(__GLIBC_PREREQ(2, 7))
        #error %m is not available
  -- 
  2.1.4