mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
glibc: fix cross-compile to ppc64le
Fixes cross-compilation when build == host != target == ppc64le. Glibc invokes objcopy during cross-compilation to ppc64le, which fails when the nonprefixed objcopy can't understand the target format.
This commit is contained in:
parent
e87f0c33df
commit
0924152075
@ -160,6 +160,10 @@ stdenv.mkDerivation ({
|
||||
"libc_cv_as_needed=no"
|
||||
] ++ lib.optional withGd "--with-gd";
|
||||
|
||||
makeFlags = [
|
||||
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
|
||||
];
|
||||
|
||||
installFlags = [ "sysconfdir=$(out)/etc" ];
|
||||
|
||||
outputs = [ "out" "bin" "dev" "static" ];
|
||||
|
Loading…
Reference in New Issue
Block a user