wok-next view gcc/stuff/patches/020_all_msgfmt-libstdc++-link.patch @ rev 21338

OpenSSL 1.0.2t -> 1.0.2u: overflow bug CVE-2019-1551
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Dec 21 08:55:46 2019 +0000 (2019-12-21)
parents
children
line source
1 Ensure that msgfmt doesn't encounter problems during gcc bootstrapping.
3 Solves error messages like the following:
5 msgfmt: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6)
7 The libgcc_s.so used during build doesn't satisfy the needs of the
8 libstdc++.so that msgfmt is linked against. On the other hand, msgfmt
9 is used as a stand-alone application here, and what library it uses
10 behind the scenes is of no concern to the gcc build process.
11 Therefore, simply invoking it "as usual", i.e. without any special
12 library path, will make it work as expected here.
14 2011-09-19 Martin von Gagern
16 References:
17 https://bugs.gentoo.org/372377
18 https://bugs.gentoo.org/295480
20 --- gcc-4.1.2.orig/libstdc++-v3/po/Makefile.am
21 +++ gcc-4.1.2/libstdc++-v3/po/Makefile.am
22 @@ -39,6 +39,7 @@ MSGFMT = msgfmt
23 EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
25 .po.mo:
26 + env --unset=LD_LIBRARY_PATH \
27 $(MSGFMT) -o $@ $<
29 all-local: all-local-$(USE_NLS)
30 --- gcc-4.1.2.orig/libstdc++-v3/po/Makefile.in
31 +++ gcc-4.1.2/libstdc++-v3/po/Makefile.in
32 @@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am
35 .po.mo:
36 + env --unset=LD_LIBRARY_PATH \
37 $(MSGFMT) -o $@ $<
39 all-local: all-local-$(USE_NLS)