]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: move -lntapi to LIBS variable
authorRalph Eastwood <rea@napatech.com>
Mon, 14 Aug 2023 12:30:31 +0000 (14:30 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Sep 2023 12:21:34 +0000 (14:21 +0200)
Previously -lntapi was appended to LDFLAGS which did not work with
all build environments.

configure.ac

index 21304786cfc2983fdefc6619c39490c3a7cc7576..1fba3ebeefb94ec4209d89165c00795f503ef5e4 100644 (file)
 
     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=""