summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-01-18 17:16:55 +0100
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2019-01-18 17:16:55 +0100
commit7532d33b2a1ea05f4ad9f0584d5db2b72c9c5062 (patch)
tree941e74abba6c619afc8c3dccd919aba8148848c6
parenta5d8607dcd86e0e20a9263a3422d682a1e67ea65 (diff)
downloaddpdk-burst-replay-7532d33b2a1ea05f4ad9f0584d5db2b72c9c5062.zip
dpdk-burst-replay-7532d33b2a1ea05f4ad9f0584d5db2b72c9c5062.tar.gz
dpdk-burst-replay-7532d33b2a1ea05f4ad9f0584d5db2b72c9c5062.tar.xz
Improve src makefile
-rw-r--r--src/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f1c8c68..e5d5be2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,5 +8,8 @@ dpdk_replay_SOURCES = main.c \
pcap.c \
utils.c
-dpdk_replay_CFLAGS = $(CFLAGS) -I/usr/include/dpdk -march=native
-dpdk_replay_LDFLAGS = $(LDFLAGS) -pthread -lnuma -ldpdk -lm
+dpdk_replay_CFLAGS := $(CFLAGS) -I/usr/include/dpdk -march=native -I$(includedir)
+dpdk_replay_LDFLAGS := $(LDFLAGS) -L$(libdir) -pthread -lnuma -lm -ldl \
+ -Wl,--whole-archive -Wl,--start-group \
+ -ldpdk \
+ -Wl,--end-group -Wl,--no-whole-archive