mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
libbfd: manually update config.guess/config.sub
Workaround for building "from" the bfd directory but needing to update files a level above. This needs to be done *after* autoreconf since autoreconf will replace these itself, apparently.
This commit is contained in:
parent
42a17d638b
commit
767bddbd80
|
@ -1,5 +1,5 @@
|
|||
{ stdenv
|
||||
, fetchurl, fetchpatch, autoreconfHook264, bison, binutils-raw
|
||||
, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-raw
|
||||
, libiberty, zlib
|
||||
}:
|
||||
|
||||
|
@ -22,6 +22,14 @@ stdenv.mkDerivation rec {
|
|||
cd bfd
|
||||
'';
|
||||
|
||||
postAutoreconf = ''
|
||||
echo "Updating config.guess and config.sub from ${gnu-config}"
|
||||
cp -f ${gnu-config}/config.{guess,sub} ../
|
||||
'';
|
||||
|
||||
# We update these ourselves
|
||||
dontUpdateAutotoolsGnuConfigScripts = true;
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook264 bison ];
|
||||
buildInputs = [ libiberty zlib ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue