mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
A work-around for supporting plugins compiled as *.a.
This is for older CMakes which don't understand object libraries yet. We auto-generate a file at the top-level that references all the global plugin objects. Once they are referenced, the linker includes them into the final executable and their ctors run to register them with the plugin manager. By default this is on. Once we can require more recent CMakes, we can turn it off (and remove) in src/CMakeLists.txt.
This commit is contained in:
parent
c19779ae88
commit
8e7ef001b3
3 changed files with 40 additions and 3 deletions
|
@ -50,7 +50,7 @@
|
|||
} \
|
||||
}; \
|
||||
\
|
||||
static Plugin __plugin; \
|
||||
Plugin __plugin; \
|
||||
} }
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue