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
|
{ stdenv
|
||||||
, fetchurl, fetchpatch, autoreconfHook264, bison, binutils-raw
|
, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-raw
|
||||||
, libiberty, zlib
|
, libiberty, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -22,6 +22,14 @@ stdenv.mkDerivation rec {
|
|||||||
cd bfd
|
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 ];
|
nativeBuildInputs = [ autoreconfHook264 bison ];
|
||||||
buildInputs = [ libiberty zlib ];
|
buildInputs = [ libiberty zlib ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user