Skip to content

Commit

Permalink
toolchain.eclass: drop --as-needed spec workaround for <gcc-3.4.4
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Jul 31, 2020
1 parent 7faed09 commit e91fed1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions eclass/toolchain.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,6 @@ toolchain_src_prepare() {
fi
fi

# disable --as-needed from being compiled into gcc specs
# natively when using a gcc version < 3.4.4
# http://gcc.gnu.org/PR14992
if ! tc_version_is_at_least 3.4.4 ; then
sed -i -e s/HAVE_LD_AS_NEEDED/USE_LD_AS_NEEDED/g "${S}"/gcc/config.in
fi

# In gcc 3.3.x and 3.4.x, rename the java bins to gcc-specific names
# in line with gcc-4.
if tc_version_is_between 3.3 4.0 ; then
Expand Down

0 comments on commit e91fed1

Please sign in to comment.