Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Nov 20, 2024
1 parent 36ca3b9 commit cdd4971
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ CARGO_VARS = TOP_BUILDDIR=$(abs_top_builddir) \
TOP_SRCDIR=$(abs_top_srcdir) \
CARGO_TARGET_DIR="$(abs_top_builddir)/rust/target" \
SURICATA_LUA_SYS_HEADER_DST="$(abs_top_builddir)/rust/gen" \
CFLAGS="$(CFLAGS)"
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)"

all-local: Cargo.toml
mkdir -p $(abs_top_builddir)/rust/gen
Expand Down
4 changes: 4 additions & 0 deletions rust/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ fn main() {
.clang_arg("-D__SCFILENAME__=\"\"")
.clang_arg(format!("-I{}/src", &build_dir));

if let Ok(cppflags) = std::env::var("CPPFLAGS") {
builder = builder.clang_arg(cppflags);
}

let headers = &["app-layer-types.h", "app-layer-protos.h"];
for header in headers {
builder = builder.header(format!("{}/src/{}", &src_dir, header));
Expand Down

0 comments on commit cdd4971

Please sign in to comment.