binutils: fix cross compilation from darwin
The libtool patch is required to correctly invoke the linker while building, so it should depend on the build toolchain.
This commit is contained in:
parent
bf27ea9cdb
commit
9568a7afef
|
@ -110,7 +110,7 @@ stdenv.mkDerivation {
|
|||
texinfo
|
||||
]
|
||||
++ lib.optionals targetPlatform.isiOS [ autoreconfHook ]
|
||||
++ lib.optionals targetPlatform.isDarwin [ autoconf269 automake gettext libtool ]
|
||||
++ lib.optionals buildPlatform.isDarwin [ autoconf269 automake gettext libtool ]
|
||||
++ lib.optionals targetPlatform.isVc4 [ flex ]
|
||||
;
|
||||
|
||||
|
@ -118,7 +118,7 @@ stdenv.mkDerivation {
|
|||
|
||||
inherit noSysDirs;
|
||||
|
||||
preConfigure = (lib.optionalString targetPlatform.isDarwin ''
|
||||
preConfigure = (lib.optionalString buildPlatform.isDarwin ''
|
||||
for i in */configure.ac; do
|
||||
pushd "$(dirname "$i")"
|
||||
echo "Running autoreconf in $PWD"
|
||||
|
|
Loading…
Reference in a new issue