summaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
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)