Merge pull request #119786 from sternenseemann/glibc-gcc
glibc: always compile with a gcc stdenv
This commit is contained in:
commit
7d4a695de4
@ -10360,10 +10360,12 @@ in
|
|||||||
stripped = false;
|
stripped = false;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
crossLibcStdenv = overrideCC stdenv
|
gccCrossLibcStdenv = overrideCC stdenv buildPackages.gccCrossStageStatic;
|
||||||
(if stdenv.hostPlatform.useLLVM or false
|
|
||||||
then buildPackages.llvmPackages_8.lldClangNoLibc
|
crossLibcStdenv =
|
||||||
else buildPackages.gccCrossStageStatic);
|
if stdenv.hostPlatform.useLLVM or false
|
||||||
|
then overrideCC stdenv buildPackages.llvmPackages_8.lldClangNoLibc
|
||||||
|
else gccCrossLibcStdenv;
|
||||||
|
|
||||||
# The GCC used to build libc for the target platform. Normal gccs will be
|
# The GCC used to build libc for the target platform. Normal gccs will be
|
||||||
# built with, and use, that cross-compiled libc.
|
# built with, and use, that cross-compiled libc.
|
||||||
@ -14585,7 +14587,9 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) Cocoa Kernel;
|
inherit (darwin.apple_sdk.frameworks) Cocoa Kernel;
|
||||||
};
|
};
|
||||||
|
|
||||||
glibc = callPackage ../development/libraries/glibc { };
|
glibc = callPackage ../development/libraries/glibc {
|
||||||
|
stdenv = gccStdenv; # doesn't compile without gcc
|
||||||
|
};
|
||||||
|
|
||||||
# Provided by libc on Operating Systems that use the Extensible Linker Format.
|
# Provided by libc on Operating Systems that use the Extensible Linker Format.
|
||||||
elf-header =
|
elf-header =
|
||||||
@ -14601,7 +14605,7 @@ in
|
|||||||
|
|
||||||
# Being redundant to avoid cycles on boot. TODO: find a better way
|
# Being redundant to avoid cycles on boot. TODO: find a better way
|
||||||
glibcCross = callPackage ../development/libraries/glibc {
|
glibcCross = callPackage ../development/libraries/glibc {
|
||||||
stdenv = crossLibcStdenv;
|
stdenv = gccCrossLibcStdenv; # doesn't compile without gcc
|
||||||
};
|
};
|
||||||
|
|
||||||
muslCross = musl.override {
|
muslCross = musl.override {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user