From 95ecbd117832c62c099b9da5762c454f6540a7e2 Mon Sep 17 00:00:00 2001 From: Ralph Eastwood Date: Mon, 14 Aug 2023 14:30:31 +0200 Subject: [PATCH] configure: move -lntapi to LIBS variable Previously -lntapi was appended to LDFLAGS which did not work with all build environments. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 21304786cf..1fba3ebeef 100644 --- a/configure.ac +++ b/configure.ac @@ -1826,7 +1826,8 @@ if test "$enable_napatech" = "yes"; then CPPFLAGS="${CPPFLAGS} -I${with_napatech_includes}" - LDFLAGS="${LDFLAGS} -L${with_napatech_libraries} -lntapi" + LDFLAGS="${LDFLAGS} -L${with_napatech_libraries}" + LIBS="${LIBS} -lntapi" AC_CHECK_HEADER(nt.h,NAPATECH="yes",NAPATECH="no") if test "$NAPATECH" != "no"; then NAPATECH=""