Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ce52c333 in mainline


Ignore:
Timestamp:
2020-07-01T13:19:34Z (7 months ago)
Author:
Jakub Jermář <jakub@…>
Branches:
master
Children:
663f445f
Parents:
28a5ebd
Message:

Fix toolchain build with gcc10

At some point, newer GCC changed the defaults from -fcommon to
-fno-common, which results in multiple symbol definition errors
during the build of binutils and gdb. This commit restores the
original behavior by passing -fcommon explicitly in CFLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r28a5ebd rce52c333  
    362362
    363363        change_title "binutils: configure (${PLATFORM})"
    364         CFLAGS=-Wno-error "${BASEDIR}/downloads/binutils-${BINUTILS_VERSION}/configure" \
     364        CFLAGS="-Wno-error -fcommon" "${BASEDIR}/downloads/binutils-${BINUTILS_VERSION}/configure" \
    365365                "--target=${TARGET}" \
    366366                "--prefix=${PREFIX}" \
     
    439439
    440440        change_title "GDB: configure (${PLATFORM})"
    441         PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" "${BASEDIR}/downloads/gdb-${GDB_VERSION}/configure" \
     441        CFLAGS="-fcommon" PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" "${BASEDIR}/downloads/gdb-${GDB_VERSION}/configure" \
    442442                "--target=${TARGET}" \
    443443                "--prefix=${PREFIX}" \
Note: See TracChangeset for help on using the changeset viewer.