You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2023/09/21 17:03:33 UTC
[trafficserver] branch master updated: cmake: compile jsonrpc_protocol with -fPIC (#10478)
This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new b4994091c3 cmake: compile jsonrpc_protocol with -fPIC (#10478)
b4994091c3 is described below
commit b4994091c3bafc4190199951d542b653689ceeed
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Thu Sep 21 12:03:27 2023 -0500
cmake: compile jsonrpc_protocol with -fPIC (#10478)
Some plugins link against jsonrpc_protocol and therefore need the
library to be compiled as position independent code.
---
mgmt/rpc/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mgmt/rpc/CMakeLists.txt b/mgmt/rpc/CMakeLists.txt
index 87112543fb..a2509eb108 100644
--- a/mgmt/rpc/CMakeLists.txt
+++ b/mgmt/rpc/CMakeLists.txt
@@ -32,6 +32,10 @@ add_library(jsonrpc_protocol STATIC
)
add_library(ts::jsonrpc_protocol ALIAS jsonrpc_protocol)
+# Some plugins link against ts::jsonrpc_protocol and therefore need it to be compiled as
+# position independent.
+set_target_properties(jsonrpc_protocol PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
+
target_link_libraries(jsonrpc_protocol
PUBLIC
ts::tscore