Skip to content

Commit f8c71e6

Browse files
committed
make: install-headers: rust-bindings.h
rust-bindings.h was not being installed with rust-bindings.h, and its now pulled in by a header used for plugin support, so make sure its installed. We first attempt to install the "dist" version if exists, otherwise install the "gen" one. Also install the "gen" even if the "dist" one exists, as its going to be newer.
1 parent 4edbc6d commit f8c71e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Makefile.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,12 @@ install-headers:
11971197
for header in $(noinst_HEADERS); do \
11981198
$(INSTALL_DATA) $$header "$(DESTDIR)${includedir}/suricata"; \
11991199
done
1200+
if test -e ../rust/dist/rust-bindings.h; then \
1201+
$(INSTALL_DATA) ../rust/dist/rust-bindings.h "$(DESTDIR)${includedir}/suricata"; \
1202+
fi
1203+
if test -e ../rust/gen/rust-bindings.h; then \
1204+
$(INSTALL_DATA) ../rust/gen/rust-bindings.h "$(DESTDIR)${includedir}/suricata"; \
1205+
fi
12001206

12011207
# Until we can remove autoconf.h from our headers, we need to to
12021208
# provide this for library/plugin users.

0 commit comments

Comments
 (0)