[tbb-commits] [tor-browser-build/master] Bug 40112: Strip libstdc++ we ship
sysrqb at torproject.org
sysrqb at torproject.org
Wed Jan 20 18:56:23 UTC 2021
commit c2dce3c86ea7904247866c1875e05d58aba178fd
Author: Georg Koppen <gk at torproject.org>
Date: Sat Jan 16 20:31:44 2021 +0000
Bug 40112: Strip libstdc++ we ship
---
projects/tor/build | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/projects/tor/build b/projects/tor/build
index c7e9190..2e32f50 100644
--- a/projects/tor/build
+++ b/projects/tor/build
@@ -76,14 +76,16 @@ openssldir=/var/tmp/dist/openssl/openssl
# LD_LIBRARY_PATH value to the Tor Browser with the newer one. Thus, we copy
# the libstdc++ into the directory with the libs tor depends on, too. See bug
# 13359 for further details.
- mkdir -p "$distdir/Tor/libstdc++"
- cp /var/tmp/dist/gcc/[% c("var/libdir") %]/libstdc++.so.6 "$distdir/Tor/libstdc++/"
+ libstdc_dir="$distdir/Tor/libstdc++"
+ mkdir -p $libstdc_dir
+ cp /var/tmp/dist/gcc/[% c("var/libdir") %]/libstdc++.so.6 $libstdc_dir/
[% IF c("var/asan") -%]
cp /var/tmp/dist/gcc/[% c("var/libdir") %]/libasan.so.5 "$distdir/Tor/"
cp /var/tmp/dist/gcc/[% c("var/libdir") %]/libubsan.so.1 "$distdir/Tor/"
[% END -%]
chmod 700 "$distdir"/Tor/*.so*
- chmod 700 "$distdir"/Tor/libstdc++/*.so*
+ chmod 700 $libstdc_dir/libstdc++.so.6
+ strip $libstdc_dir/libstdc++.so.6
# This is needed to make RPATH unavailable. See bug 9150.
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$distdir/Tor/"
[% END %]
More information about the tbb-commits
mailing list