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"
|
"libc_cv_as_needed=no"
|
||||||
] ++ lib.optional withGd "--with-gd";
|
] ++ lib.optional withGd "--with-gd";
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
|
||||||
|
];
|
||||||
|
|
||||||
installFlags = [ "sysconfdir=$(out)/etc" ];
|
installFlags = [ "sysconfdir=$(out)/etc" ];
|
||||||
|
|
||||||
outputs = [ "out" "bin" "dev" "static" ];
|
outputs = [ "out" "bin" "dev" "static" ];
|
||||||
|
|
Loading…
Reference in New Issue