c-ares: fix build with CONFIG_PKG_FORTIFY_SOURCE* 1464/head
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Jun 2015 10:54:05 +0000 (12:54 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 25 Jun 2015 10:57:36 +0000 (12:57 +0200)
commit2e73fcd4b02cd6210c628c0c6e7a8e54cbddca41
tree7691c1f664a553520085c53e2726f2046b8a0870
parent07c0677b7b96cc69109b8dda9cebd01e62aa2f26
c-ares: fix build with CONFIG_PKG_FORTIFY_SOURCE*

When fortify source is enabled, the c-ares configure script will abort with:
    configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=1

Change the OpenWrt Makefile to move any -D flags from TARGET_CFLAGS to
TARGET_CPPFLAGS in order to satisfy `configure`.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
libs/c-ares/Makefile