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.

+9 -1
+9 -1
pkgs/development/libraries/libbfd/default.nix
··· 1 1 { stdenv 2 - , fetchurl, fetchpatch, autoreconfHook264, bison, binutils-raw 2 + , fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-raw 3 3 , libiberty, zlib 4 4 }: 5 5 ··· 21 21 postPatch = '' 22 22 cd bfd 23 23 ''; 24 + 25 + postAutoreconf = '' 26 + echo "Updating config.guess and config.sub from ${gnu-config}" 27 + cp -f ${gnu-config}/config.{guess,sub} ../ 28 + ''; 29 + 30 + # We update these ourselves 31 + dontUpdateAutotoolsGnuConfigScripts = true; 24 32 25 33 nativeBuildInputs = [ autoreconfHook264 bison ]; 26 34 buildInputs = [ libiberty zlib ];