diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2016-08-30 18:33:37 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2016-08-30 18:33:37 +0100 |
commit | 01b4ec25702da013dadcac5df9228643672976da (patch) | |
tree | 1b42daf1f9a22a15cec12dfcbff361fd3305544d /debian/rules | |
parent | cb54a5c91878b3f92aba4ab02cad63acc3b8999d (diff) |
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 <luca.boccassi@gmail.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 5 insertions, 0 deletions
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 |