aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
authorSirshak Das <sirshak.das@arm.com>2018-05-29 21:06:28 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-30 08:23:07 +0000
commit6495c4b8a11f231f099ce96e4538e1f82ce51793 (patch)
treea2da5ecf83f1248eb8f7e869c26f34337f137f3e /dpdk/Makefile
parent374399992f9cdaea2f0a32b37a5b65ae67e2b97b (diff)
Fix clang compilation on aarch64: replace -pie with -fPIE for dpdk compilation.
Fixes clang error: argument unused during compilation: '-pie' by replacing it with -fPIE Change-Id: Ic89a5e325e019d4d794d35556a07ebcf0b718dd3 Signed-off-by: Sirshak Das <sirshak.das@arm.com> Reviewed-by: Brian Brooks <brian.brooks@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Diffstat (limited to 'dpdk/Makefile')
-rw-r--r--dpdk/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 17a229cb859..331e1c34886 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -145,7 +145,11 @@ JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\
$(shell grep -c ^processor /proc/cpuinfo), 2)
# compiler/linker custom arguments
+ifeq ($(DPDK_CC),clang)
+DPDK_CPU_CFLAGS := -fPIE -fPIC
+else
DPDK_CPU_CFLAGS := -pie -fPIC
+endif
ifeq ($(DPDK_DEBUG),n)
DPDK_EXTRA_CFLAGS := -g -mtune=$(DPDK_TUNE)