From 41c5d99d584f8bffa77b94dcfcc0fa3c4c406e81 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Thu, 14 Mar 2013 17:15:17 +0100 Subject: netsniff-ng trafgen: Find libnl-3.0 and libnl-genl-3.0 using pkg-config Call pkg-config --cflags and pkg-config --libs to find correct CFLAGS and LDFLAGS respectively. Signed-off-by: Peter Stuge Signed-off-by: Daniel Borkmann --- netsniff-ng/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netsniff-ng') diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index 269d403..46b885d 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -1,6 +1,6 @@ netsniff-ng-libs = -lGeoIP \ - -lnl-genl-3 \ - -lnl-3 \ + $(shell pkg-config --libs libnl-3.0) \ + $(shell pkg-config --libs libnl-genl-3.0) \ -lpcap \ -lpthread \ -lz -- cgit v1.2.3-54-g00ecf