]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
build: include first rust/gen
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 22 Jul 2025 08:20:32 +0000 (10:20 +0200)
committerJason Ish <jason.ish@oisf.net>
Fri, 1 Aug 2025 16:54:12 +0000 (10:54 -0600)
Ticket: 7804

Allows especially to prefer our lua (rust crate) includes over
the system one

configure.ac

index 6136eb08178038831536c178eb5bb9d44ac0ccea..afe93bd8fa7e664ca030450b5a2ec92af905f38d 100644 (file)
@@ -2133,7 +2133,8 @@ fi
     fi
     RUST_SURICATA_LIB="${RUST_SURICATA_LIBDIR}/${RUST_SURICATA_LIBNAME}"
 
-    CFLAGS="${CFLAGS} -I\${srcdir}/../rust/gen -I\${srcdir}/../rust/dist -I../rust/gen"
+    # make sure that we use our headers for lua
+    CPPFLAGS="-I\${srcdir}/../rust/gen -I\${srcdir}/../rust/dist -I../rust/gen ${CPPFLAGS}"
     AC_SUBST(RUST_SURICATA_LIB)
     AC_SUBST(RUST_LDADD)
     if test "x$CARGO_HOME" = "x"; then