glibc: fixup retaining bootstrap-tools reference

https://github.com/NixOS/nixpkgs/pull/15867#issuecomment-227949096
This commit is contained in:
Vladimír Čunát 2016-06-23 12:11:21 +02:00
parent 6b27ceb006
commit 91c1317272

View File

@ -72,6 +72,14 @@ in
# Get rid of more unnecessary stuff. # Get rid of more unnecessary stuff.
rm -rf $out/var $out/sbin/sln rm -rf $out/var $out/sbin/sln
# For some reason these aren't stripped otherwise and retain reference
# to bootstrap-tools; on cross-arm this stripping would break objects.
if [ -z "$crossConfig" ]; then
for i in "$out"/lib/*.a; do
strip -S "$i"
done
fi
# Put libraries for static linking in a separate output. Note # Put libraries for static linking in a separate output. Note
# that libc_nonshared.a and libpthread_nonshared.a are required # that libc_nonshared.a and libpthread_nonshared.a are required
# for dynamically-linked applications. # for dynamically-linked applications.