Skip to content

Commit

Permalink
Make it possible to dlopen libfluent-bit.so
Browse files Browse the repository at this point in the history
The static copy of jemalloc that is included in the distributed
fluent-bit binary packages prevents use loading the library at runtime
as it is typically done in plugin systems.

A slight change to the jemalloc configuration lifts this restriction.
  • Loading branch information
tobim committed Oct 5, 2023
1 parent 92e0435 commit 9fae87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ if(FLB_JEMALLOC AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")

# Add support for options like page size, if empty we default it
if(NOT DEFINED FLB_JEMALLOC_OPTIONS OR "${FLB_JEMALLOC_OPTIONS}" STREQUAL "")
set(FLB_JEMALLOC_OPTIONS "--with-lg-quantum=3")
set(FLB_JEMALLOC_OPTIONS "--with-lg-quantum=3 --disable-initial-exec-tls")
endif()
# Split into a list so CMake handles it correctly when passing to configure command
separate_arguments(FLB_JEMALLOC_OPTIONS_LIST UNIX_COMMAND ${FLB_JEMALLOC_OPTIONS})
Expand Down

0 comments on commit 9fae87a

Please sign in to comment.