Summary: | sys-apps/busybox-1.21.0 fails to build with gold | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ryan Hill (RETIRED) <rhill> |
Component: | [OLD] Core system | Assignee: | Embedded Gentoo Team <embedded> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 269315 | ||
Attachments: | build log |
Description
Ryan Hill (RETIRED)
2013-05-24 05:14:24 UTC
check_cc() in trylink script doesn't respect cflags: diff --git a/scripts/trylink b/scripts/trylink --- a/scripts/trylink +++ b/scripts/trylink @@ -49,7 +49,7 @@ check_cc() { local tempname="/tmp/temp.$$.$RANDOM" # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :( # "-xc": C language. "/dev/null" is an empty source file. - if $CC $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then + if $CC $CFLAGS $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then echo "$1"; else echo "$2"; pushed upstream & in our tree Commit message: Respect CFLAGS/CPPFLAGS when testing the compiler http://sources.gentoo.org/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch?rev=1.1 |