build-sys: Perform flag tests in context to existing flags
authorMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 12:47:30 +0000 (13:47 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 13:57:46 +0000 (14:57 +0100)
commit4c79662e251bea1bfbe18d4374a69bf47aa7a1c6
tree967749853f1f3743c1d8dc5f8ce8b1168a8b4916
parent784b22eef5005309a43400e9ab43d37281b1290c
build-sys: Perform flag tests in context to existing flags

Fix the CC_CHECK_FLAG_APPEND macro to test appended flags in context to
current flag values. Otherwise, it is possible to append flags colliding
with user's *FLAGS or even previously appended flags that will cause
the build to fail.
m4/attributes.m4