mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Make sure Spicy symbols are available.
The Spicy/HILTI runtime libraries are modelled as object libraries and linked into the `spicy` and `hilti` libraries. These libraries are then linked into `zeek_objs` which is another object library linked into the `zeek` executable (target `zeek_exe`). On some platforms this transitive link of object libraries is broken with `--binary-package` which causes creation of static archives, even with our minimum required CMake version which already contains many fixes for object libraries. With this patch we now explicitly linked the Spicy/HILTI runtime libraries into `zeek_exe`. Closes #3177.
This commit is contained in:
parent
6d10082cc3
commit
9aba561e44
1 changed files with 2 additions and 0 deletions
|
@ -959,8 +959,10 @@ if (NOT DISABLE_SPICY)
|
|||
# instead explicitly branch on `BINARY_PACKAGING_MODE` here.
|
||||
if (BINARY_PACKAGING_MODE)
|
||||
hilti_link_object_libraries_in_tree(zeek_exe PRIVATE)
|
||||
spicy_link_object_libraries_in_tree(zeek_exe PRIVATE)
|
||||
else ()
|
||||
hilti_link_libraries_in_tree(zeek_exe PRIVATE)
|
||||
spicy_link_libraries_in_tree(zeek_exe PRIVATE)
|
||||
endif ()
|
||||
|
||||
set(HAVE_SPICY yes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue