forked from mirrors/nixpkgs
c909f1b18e
This is required for Aarch64 since a lot of source tarballs ship with outdated configure scripts that don't recognize aarch64. Simply replacing the config.guess and config.sub with new versions from upstream makes them build again. This same approach is used by at least Buildroot and Fedora. In principle this could be enabled for all architectures but conditionalizing this on aarch64 avoids a mass rebuild on x86.
13 lines
426 B
Bash
13 lines
426 B
Bash
preConfigurePhases+=" updateAutotoolsGnuConfigScriptsPhase"
|
|
|
|
updateAutotoolsGnuConfigScriptsPhase() {
|
|
if [ -n "$dontUpdateAutotoolsGnuConfigScripts" ]; then return; fi
|
|
|
|
for script in config.sub config.guess; do
|
|
for f in $(find . -name "$script"); do
|
|
echo "Updating Autotools / GNU config script to a newer upstream version: $f"
|
|
cp -f "@gnu_config@/$script" "$f"
|
|
done
|
|
done
|
|
}
|