components/coreutils/patches/chroot-libthread.patch
changeset 1898 5c902a3c6e7e
child 1900 e587944ed7de
equal deleted inserted replaced
1897:9c849cc3d7d5 1898:5c902a3c6e7e
       
     1 These changes have not been passed upstream. It's really a Studio compiler
       
     2 bug CR #18752073.
       
     3 
       
     4 --- coreutils-8.16/src/Makefile.am.orig	2014-05-15 10:13:19.739717905 -0700
       
     5 +++ coreutils-8.16/src/Makefile.am	2014-05-15 10:13:51.751658970 -0700
       
     6 @@ -178,6 +178,9 @@
       
     7  # Tell the linker to omit references to unused shared libraries.
       
     8  AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
       
     9  
       
    10 +# for chroot to work correctly for root (CR #18744156)
       
    11 +chroot_LDFLAGS =  -mt=no -D_REENTRANT -z now
       
    12 +
       
    13  # Sometimes, the expansion of $(LIBINTL) includes -lc which may
       
    14  # include modules defining variables like 'optind', so libcoreutils.a
       
    15  # must precede $(LIBINTL) in order to ensure we use GNU getopt.