From 01b4ec25702da013dadcac5df9228643672976da Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 30 Aug 2016 18:33:37 +0100 Subject: Set EXTRA/HOST CPP/LD/CFLAGS in debian/rules Part of fix for: W: dpdk-dev: hardening-no-relro usr/share/dpdk/x86_64-default-linuxapp-gcc/app/dpdk-pmdinfogen Change-Id: I27805d114619944d2cb0df2d35ddbf3d157aea18 Signed-off-by: Luca Boccassi --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index da7e3c86..b072cbdf 100755 --- a/debian/rules +++ b/debian/rules @@ -22,8 +22,13 @@ export DEB_CFLAGS_MAINT_APPEND = -fPIC include /usr/share/dpkg/buildflags.mk export EXTRA_CFLAGS=$(CFLAGS) +export EXTRA_CPPFLAGS=$(CPPFLAGS) +export HOST_EXTRA_CFLAGS=$(CFLAGS) +export HOST_EXTRA_CPPFLAGS=$(CPPFLAGS) # need to be stripped as DPDK build system adds them and it would be -Wl,-Wl,opt export EXTRA_LDFLAGS=$(shell echo $(LDFLAGS) | sed 's/-Wl,//g') +# HOST_CC build system does not add -Wl ... +export EXTRA_HOST_LDFLAGS=$(LDFLAGS) # People rebuilding this package can overwrite DPDK_CONFIG, RTE_MACHINE and # RTE_TARGET via environment variables if they like -- cgit 1.2.3-korg