This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compilers_generic + crosstool-ng_generic: Added
- Loading branch information
1 parent
d80235b
commit 00f8db1
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
cpu_arch: | ||
- arm | ||
libc: | ||
- uClibc | ||
uclibc: | ||
- 0.9.33.2 | ||
binutils: | ||
- 2.27 | ||
kernel: | ||
- 3.2.43 | ||
gcc: | ||
- 6.3.0 | ||
gmp: | ||
- 6.1.2 | ||
mpfr: | ||
- 3.1.5 | ||
gettext: | ||
- 0.19.7 | ||
libiconv: | ||
- 1.14 | ||
isl: | ||
- 0.18 | ||
mpc: | ||
- 1.0.3 | ||
ncurses: | ||
- 6.0 | ||
gdb: | ||
- 7.12.1 | ||
duma: | ||
- 2.5.15 | ||
vendor: | ||
- caterpillar | ||
target_platform: | ||
- linux-cos5-x86_64 | ||
cross_target_platform: | ||
- linux-imx351uc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From 237479a0617dfbc9de8e49b31ebe907f074ef7b4 Mon Sep 17 00:00:00 2001 | ||
From: Ray Donnelly <[email protected]> | ||
Date: Wed, 15 Feb 2017 14:33:25 +0000 | ||
Subject: [PATCH] uClibc/glibc: add -fno-lto when making dummy shared libs | ||
|
||
Otherwise the build machine's lto plugin gets loaded and | ||
that segfaults when processing your host machine's dummy | ||
shared lib | ||
|
||
Signed-off-by: Ray Donnelly <[email protected]> | ||
--- | ||
scripts/build/libc/glibc.sh | 1 + | ||
scripts/build/libc/uClibc.sh | 2 +- | ||
2 files changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh | ||
index 348c35a..04416ea 100644 | ||
--- a/scripts/build/libc/glibc.sh | ||
+++ b/scripts/build/libc/glibc.sh | ||
@@ -431,6 +431,7 @@ do_libc_backend_once() { | ||
-nostartfiles \ | ||
-shared \ | ||
-x c /dev/null \ | ||
+ -fno-lto \ | ||
-o "${startfiles_dir}/libc.so" | ||
fi # threads == nptl | ||
fi # libc_mode = startfiles | ||
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh | ||
index e87abaf..fe18ac4 100644 | ||
--- a/scripts/build/libc/uClibc.sh | ||
+++ b/scripts/build/libc/uClibc.sh | ||
@@ -197,7 +197,7 @@ do_libc_backend_once() { | ||
# libm.so is needed for ppc, as libgcc is linked against libm.so | ||
# No problem to create it for other archs. | ||
CT_DoLog EXTRA "Building dummy shared libs" | ||
- CT_DoExecLog ALL "${CT_TARGET}-${CT_CC}" -nostdlib -nostartfiles \ | ||
+ CT_DoExecLog ALL "${CT_TARGET}-${CT_CC}" -nostdlib -nostartfiles -fno-lto \ | ||
-shared ${multi_flags} -x c /dev/null -o libdummy.so | ||
|
||
CT_DoLog EXTRA "Installing start files" | ||
|