Fix undefined symbols error on Mac (fix #38).
(cherry picked from commit d381713639)
This commit is contained in:
parent
e6fa9531c8
commit
79f05c204e
1 changed files with 4 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ set_target_properties(ngx_otel_module PROPERTIES PREFIX "")
|
||||||
# can't use OTel's WITH_ABSEIL until cmake 3.24, as it triggers find_package()
|
# can't use OTel's WITH_ABSEIL until cmake 3.24, as it triggers find_package()
|
||||||
target_compile_definitions(ngx_otel_module PRIVATE HAVE_ABSEIL)
|
target_compile_definitions(ngx_otel_module PRIVATE HAVE_ABSEIL)
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
target_link_options(ngx_otel_module PRIVATE -undefined dynamic_lookup)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories(ngx_otel_module PRIVATE
|
target_include_directories(ngx_otel_module PRIVATE
|
||||||
${NGX_OTEL_NGINX_BUILD_DIR}
|
${NGX_OTEL_NGINX_BUILD_DIR}
|
||||||
${NGX_OTEL_NGINX_DIR}/src/core
|
${NGX_OTEL_NGINX_DIR}/src/core
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue