summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-20 08:25:24 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-20 08:26:10 +0100
commit78cd431b62a02ca951200937750ec24d47a3185a (patch)
treec214e1c6358453a958d6bf96e278032c20f99a06 /sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch
parentdev-python/virtualenv: Bump to 16.7.10 (diff)
downloadgentoo-78cd431b62a02ca951200937750ec24d47a3185a.tar.gz
gentoo-78cd431b62a02ca951200937750ec24d47a3185a.tar.bz2
gentoo-78cd431b62a02ca951200937750ec24d47a3185a.zip
sys-libs/newlib: don't use c++ _nano libs, bug #723756
Gentoo's and upstream gccs don't install _nano variants of stdc++ and supc++. Let's not refer to them in nano specs of newlib until we do (or better yet upstream does) have these libraries. Reported-by: David Flogeras Closes: https://bugs.gentoo.org/723756 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch')
-rw-r--r--sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch b/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch
new file mode 100644
index 000000000000..58068ad2d22f
--- /dev/null
+++ b/sys-libs/newlib/files/newlib-3.3.0-no-nano-cxx.patch
@@ -0,0 +1,29 @@
+Gentoo's and upstream gccs don't install _nano variants of stdc++ and supc++.
+
+Let's not refer to them in nano specs of newlib until we do
+(or better yet upstream does) have these libraries.
+
+Reported-by: David Flogeras
+Bug: https://bugs.gentoo.org/723756
+--- a/libgloss/arc/nano.specs
++++ b/libgloss/arc/nano.specs
+@@ -11,7 +11,7 @@
+ %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
+
+ *link:
+-%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lstdc++ -lstdc++_nano) %:replace-outfile(-lsupc++ -lsupc++_nano)
++%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
+
+ *lib:
+ %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}
+--- a/libgloss/arm/elf-nano.specs
++++ b/libgloss/arm/elf-nano.specs
+@@ -15,7 +15,7 @@
+ %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
+
+ *link:
+-%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lrdimon -lrdimon_nano) %:replace-outfile(-lstdc++ -lstdc++_nano) %:replace-outfile(-lsupc++ -lsupc++_nano)
++%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lrdimon -lrdimon_nano)
+
+ *lib:
+ %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}