mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-24 20:16:32 +01:00
Build g++.
This commit is contained in:
parent
3835f1e1aa
commit
effa9ba93a
7 changed files with 83 additions and 17 deletions
17
sysa/gcc-4.7.4/patches/libstdc++-v3_musl.patch
Normal file
17
sysa/gcc-4.7.4/patches/libstdc++-v3_musl.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Add support for *-linux-musl triplet.
|
||||
|
||||
--- libstdc++-v3/configure.host 2021-07-07 10:00:23.934848223 +0100
|
||||
+++ libstdc++-v3/configure.host 2021-07-07 10:00:36.295195348 +0100
|
||||
@@ -242,6 +242,9 @@
|
||||
freebsd*)
|
||||
os_include_dir="os/bsd/freebsd"
|
||||
;;
|
||||
+ linux-musl*)
|
||||
+ os_include_dir="os/generic"
|
||||
+ ;;
|
||||
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
|
||||
if [ "$uclibc" = "yes" ]; then
|
||||
os_include_dir="os/uclibc"
|
||||
36
sysa/gcc-4.7.4/patches/remove_gperf_dependency.patch
Normal file
36
sysa/gcc-4.7.4/patches/remove_gperf_dependency.patch
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Remove dependency on gperf.
|
||||
|
||||
--- gcc/cp/except.c 2021-07-07 18:24:36.561530121 +0100
|
||||
+++ gcc/cp/except.c 2021-07-07 18:27:18.035681929 +0100
|
||||
@@ -987,8 +987,6 @@
|
||||
exception, unless it calls a program-supplied function that
|
||||
throws an exception. */
|
||||
|
||||
-#include "cfns.h"
|
||||
-
|
||||
int
|
||||
nothrow_libfn_p (const_tree fn)
|
||||
{
|
||||
@@ -1007,7 +1005,7 @@
|
||||
unless the system headers are playing rename tricks, and if
|
||||
they are, we don't want to be confused by them. */
|
||||
id = DECL_NAME (fn);
|
||||
- return !!libc_name_p (IDENTIFIER_POINTER (id), IDENTIFIER_LENGTH (id));
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/* Returns nonzero if an exception of type FROM will be caught by a
|
||||
--- gcc/cp/Make-lang.in 2021-07-07 18:24:36.571530380 +0100
|
||||
+++ gcc/cp/Make-lang.in 2021-07-07 18:26:47.154887799 +0100
|
||||
@@ -313,7 +313,7 @@
|
||||
cp/rtti.o: cp/rtti.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) convert.h \
|
||||
$(TARGET_H) $(C_PRAGMA_H) gt-cp-rtti.h intl.h
|
||||
cp/except.o: cp/except.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \
|
||||
- cp/cfns.h $(TREE_INLINE_H) $(TARGET_H) gt-cp-except.h
|
||||
+ $(TREE_INLINE_H) $(TARGET_H) gt-cp-except.h
|
||||
cp/expr.o: cp/expr.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) $(TM_P_H)
|
||||
cp/pt.o: cp/pt.c $(CXX_TREE_H) $(TM_H) cp/decl.h cp/cp-objcp-common.h \
|
||||
toplev.h $(TREE_INLINE_H) pointer-set.h gt-cp-pt.h vecprim.h intl.h \
|
||||
Loading…
Add table
Add a link
Reference in a new issue