components/coreutils/patches/stdbuf-configure.patch
branchs11u3-sru
changeset 5249 8a7aa7f8367e
equal deleted inserted replaced
5246:bb1d032b7f7e 5249:8a7aa7f8367e
       
     1 Always build stdbuf irrespective of whether this is an ELF system.
       
     2 
       
     3 These changes have already been accepted upstream.
       
     4 
       
     5 --- coreutils-8.16/configure.ac.orig	2014-03-18 20:59:59.283886213 -0700
       
     6 +++ coreutils-8.16/configure.ac	2014-03-18 21:02:30.881534195 -0700
       
     7 @@ -395,16 +395,13 @@
       
     8    gl_ADD_PROG([optional_bin_progs], [df])
       
     9  fi
       
    10  
       
    11 -# Limit stdbuf to ELF systems with GCC
       
    12  AC_MSG_CHECKING([whether this is an ELF system])
       
    13  AC_EGREP_CPP([yes], [#if __ELF__
       
    14  yes
       
    15  #endif], [elf_sys=yes], [elf_sys=no])
       
    16  AC_MSG_RESULT([$elf_sys])
       
    17 -if test "$elf_sys" = "yes" && \
       
    18 -   test "$GCC" = "yes"; then
       
    19 -  gl_ADD_PROG([optional_bin_progs], [stdbuf])
       
    20 -fi
       
    21 +gl_ADD_PROG([optional_bin_progs], [stdbuf])
       
    22 +gl_ADD_PROG([optional_pkglib_progs], [libstdbuf.so])
       
    23  
       
    24  ############################################################################
       
    25  mk="$srcdir/src/Makefile.am"