]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: add a function to detect support by the compiler of certain options
authorWilly Tarreau <w@1wt.eu>
Wed, 13 Sep 2017 14:54:28 +0000 (16:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Sep 2017 14:57:52 +0000 (16:57 +0200)
commitd3a7f40359e59a0c44e929efa91761ad21d38167
tree7f305e21e7a64fc98156be1e8276390455a3b397
parentc3680ecdf83e813fda6b9dd9231dfdb8611b3ea7
BUILD: Makefile: add a function to detect support by the compiler of certain options

The recent gcc and clang are utterly broken and apparently written by
people who don't use them anymore, because they emit warnings that are
impossible to disable in the code, which is the opposite of what a
warning should do. It is however possible to disable these warnings on
the command line, but not in a backwards-compatible way.

Thus here we create a new function which detect if the compiler supports
certain options, and which adds them if supported.
Makefile