components/coreutils/patches/chroot-libthread.patch
changeset 1900 e587944ed7de
parent 1898 5c902a3c6e7e
child 2050 7c6a1559c620
equal deleted inserted replaced
1899:a814d85099bf 1900:e587944ed7de
     1 These changes have not been passed upstream. It's really a Studio compiler
     1 These changes have not been passed upstream. It's really a Studio compiler
     2 bug CR #18752073.
     2 bug CR #18752073.
     3 
     3 
     4 --- coreutils-8.16/src/Makefile.am.orig	2014-05-15 10:13:19.739717905 -0700
     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
     5 +++ coreutils-8.16/src/Makefile.am	2014-05-16 10:39:39.250671691 -0700
     6 @@ -178,6 +178,9 @@
     6 @@ -178,6 +178,15 @@
     7  # Tell the linker to omit references to unused shared libraries.
     7  # Tell the linker to omit references to unused shared libraries.
     8  AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
     8  AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
     9  
     9  
    10 +# for chroot to work correctly for root (CR #18744156)
    10 +# for chroot to work correctly for root (CR #18744156)
    11 +chroot_LDFLAGS =  -mt=no -D_REENTRANT -z now
    11 +# add '-z now' to disable lazy loading since we need to bring in
       
    12 +# dependencies before we chroot(2) to an environment that may not
       
    13 +# be able to satisfy them.
       
    14 +chroot_LDFLAGS =  -z now
       
    15 +# add '-mt=no' so that we don't end up with an unnecessary dependency on
       
    16 +# libthread.so.
       
    17 +chroot_LDFLAGS +=  -mt=no
    12 +
    18 +
    13  # Sometimes, the expansion of $(LIBINTL) includes -lc which may
    19  # Sometimes, the expansion of $(LIBINTL) includes -lc which may
    14  # include modules defining variables like 'optind', so libcoreutils.a
    20  # include modules defining variables like 'optind', so libcoreutils.a
    15  # must precede $(LIBINTL) in order to ensure we use GNU getopt.
    21  # must precede $(LIBINTL) in order to ensure we use GNU getopt.