Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|