forked from mirrors/nixpkgs
Merge pull request #58313 from arcnmx/gcc-8-cross
gcc: fix gcc8 for cross-compiled targets
This commit is contained in:
commit
38a89c8653
|
@ -322,6 +322,13 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath (optional (zlib != null) zlib));
|
LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath (optional (zlib != null) zlib));
|
||||||
|
|
||||||
|
EXTRA_TARGET_FLAGS = optionals
|
||||||
|
(targetPlatform != hostPlatform && libcCross != null)
|
||||||
|
([
|
||||||
|
"-idirafter ${getDev libcCross}${libcCross.incdir or "/include"}"
|
||||||
|
] ++ optionals (! crossStageStatic) [
|
||||||
|
"-B${libcCross.out}${libcCross.libdir or "/lib"}"
|
||||||
|
]);
|
||||||
|
|
||||||
EXTRA_TARGET_LDFLAGS = optionals
|
EXTRA_TARGET_LDFLAGS = optionals
|
||||||
(targetPlatform != hostPlatform && libcCross != null)
|
(targetPlatform != hostPlatform && libcCross != null)
|
||||||
|
|
Loading…
Reference in a new issue