Skip to content

Commit

Permalink
gcc: upgrade aarch64-linux default from 9 to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs124 committed Apr 7, 2022
1 parent cc774b5 commit 24dfab6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/compilers/gcc/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@ postInstall() {
moveToOutput "${targetConfig+$targetConfig/}lib/lib*.dll.a" "${!outputLib}"
moveToOutput "share/gcc-*/python" "${!outputLib}"

# based on https://src.fedoraproject.org/rpms/gcc/blob/95507e8b681b5013b87bbbcb0514dd27941e648a/f/gcc.spec#_1293
# if [ ! -z $REPLACE_LINKER_SCRIPT ]; then
rm -f "${!outputLib}/lib/libgcc_s.so"
echo '/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
GROUP ( libgcc_s.so.1 libgcc.a )' > "${!outputLib}/lib/libgcc_s.so"
# fi

if [ -z "$enableShared" ]; then
moveToOutput "${targetConfig+$targetConfig/}lib/lib*.a" "${!outputLib}"
fi
Expand Down
3 changes: 1 addition & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12164,8 +12164,7 @@ with pkgs;
num =
if (with stdenv.targetPlatform; isVc4 || libc == "relibc") then 6
else if (stdenv.targetPlatform.isAarch64 && stdenv.isDarwin) then 11
else if (stdenv.targetPlatform.isx86_64 && stdenv.isLinux) then 11
else if stdenv.targetPlatform.isAarch64 then 9
else if ((stdenv.targetPlatform.isAarch64 || stdenv.targetPlatform.isx86_64) && stdenv.isLinux) then 11
else 10;
numS = toString num;
in {
Expand Down

0 comments on commit 24dfab6

Please sign in to comment.