Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
compilers_generic + crosstool-ng_generic: Added
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Jun 2, 2017
1 parent d80235b commit 00f8db1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cross-compilers/compilers_generic/conda_build_config.yaml
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
41 changes: 41 additions & 0 deletions cross-compilers/crosstool-ng_generic/no-lto.patch
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"

0 comments on commit 00f8db1

Please sign in to comment.