aboutsummaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)Author
2017-12-01build: detect ld version-script flag supportDavid R. Bild
Some linkers do not support the --version-script flag. Only include it if the linker supports it. Signed-off-by: David R. Bild <david.bild@xaptum.com>
2017-10-01build: Cause warnings to be errors when checking for preprocessor flag support.Philip Tricca
This is a continuation of the work from ce8b05ed45c83064f559727527ef3ab9a56c8796. It may be that the preprocessor will issue a warning for an unsupported flag instead of an error. Since we build with -Werror & -Wall we must ensure that all warnings are treated as errors when we're checking for supported flags. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
2017-09-25build: Cause warnings to be errors when checking for compiler flag support.Philip Tricca
This was the original intent I just didn't understand how the macro works. Turns out that warnings are ignored so if a compiler flag that's not supported only causes a warning then it's considered "supported" and will be included in CFLAGS with the macro as it was. But since we make all warnings errors when we build, the unsupported flag causes a build failure. With this patch causes unsupported, optional compiler flags to be dropped. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
2017-03-08configure.ac: Move compiler / preproc / link flag macros to m4/.Philip Tricca
This also renames these macros to align better with autoconf conventions (puts them in the AX_ namespace & uppercase name) and fixes a bug in the AX_ADD_LINK_FLAG macro where flags were being added to EXTRA_CFLAGS instead of EXTRA_LDFLAGS. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>