kamailio-5.x: add CPPFLAGS to CFLAGS

Pass CPPFLAGS in the CFLAGS as otherwise the build system will ignore
them.

This way FORTIFY_SOURCE headers are passed to the compiler.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2018-02-03 14:02:36 +01:00
parent 706ea18d8c
commit 8763b0703f

View file

@ -121,7 +121,7 @@ PKG_MAKE_ARGS:= \
cfg_target:=/etc/kamailio/ \ cfg_target:=/etc/kamailio/ \
TLS_HOOKS=1 \ TLS_HOOKS=1 \
extra_defs="-DUSE_PTHREAD_MUTEX " \ extra_defs="-DUSE_PTHREAD_MUTEX " \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LOCALBASE="$(STAGING_DIR)/usr" \ LOCALBASE="$(STAGING_DIR)/usr" \
SYSBASE="$(STAGING_DIR)/usr" \ SYSBASE="$(STAGING_DIR)/usr" \
PCREDEFS:="$(TARGET_CPPFLAGS)" \ PCREDEFS:="$(TARGET_CPPFLAGS)" \