summaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2018-09-07 01:00:54 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-09-07 19:17:15 +0000
commitdce4d465a6eed58c7dc99b5b3267eea751738b01 (patch)
tree8cc7563b6f12b6506c59cc33768e6c9763dcc04a /util/crossgcc
parent7160766ebf97aa33b2cd708146ba84701b5a6fff (diff)
downloadcoreboot-dce4d465a6eed58c7dc99b5b3267eea751738b01.tar.xz
util/crossgcc: Tell gcc that it'll use gnu as and ld
Otherwise it reduces its expectations on what as and ld take in terms of arguments, which breaks some edk2 related builds because tons of -I$path_to_stuff arguments aren't passed along. Change-Id: I53f87442de03d5ead8a6632d3102d5502065b828 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/28534 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-xutil/crossgcc/buildgcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index d80fcf1dc6..dea42adaa9 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -787,6 +787,7 @@ build_cross_GCC() {
--with-system-zlib \
--with-gmp="$DESTDIR$TARGETDIR" --with-mpfr="$DESTDIR$TARGETDIR" \
--with-mpc="$DESTDIR$TARGETDIR" \
+ --with-gnu-as --with-gnu-ld \
--with-pkgversion="coreboot toolchain v$CROSSGCC_VERSION $CROSSGCC_DATE" \
&& \
mkdir -p gcc/$TARGETARCH && \