BUILD: Reject GNU Make 3.80 and older

GNU Make 3.80 is the default version on macOS Tiger, and it shouldn't be
used because it has various parsing problems and bugs.

The .FEATURES variable was added in GNU Make 3.81, and that's the
easiest and most reliable way of detecting this version.

We know that GNU Make 3.81 is OK since that's still what Apple ships
by default on modern macOS (because of GPLv3).
This commit is contained in:
Donovan Watteau 2022-05-13 22:05:34 +02:00 committed by Thierry Crozat
parent 3d82857b79
commit 4c90e20b8d

View file

@ -1,3 +1,8 @@
# GNU Make 3.80 and older have bugs that cause parsing issues.
# Make sure we have at least version 3.81.
ifndef .FEATURES
$(error GNU Make 3.81 or higher is required)
endif
#######################################################################
# Default compilation parameters. Normally don't edit these #