This is an automated email from the ASF dual-hosted git repository.
zwoop 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 7ad8441943 This fixes the linking issues from #11320 (#11325)
7ad8441943 is described below
commit 7ad84419432b0807578a59efbf63a3a8226ed1f3
Author: Leif Hedstrom <[email protected]>
AuthorDate: Mon May 6 17:02:19 2024 -0600
This fixes the linking issues from #11320 (#11325)
---
plugins/header_rewrite/CMakeLists.txt | 2 +-
plugins/header_rewrite/header_rewrite.cc | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/plugins/header_rewrite/CMakeLists.txt
b/plugins/header_rewrite/CMakeLists.txt
index fbc919f58d..b342cdccbb 100644
--- a/plugins/header_rewrite/CMakeLists.txt
+++ b/plugins/header_rewrite/CMakeLists.txt
@@ -38,7 +38,7 @@ target_link_libraries(header_rewrite_parser PUBLIC
libswoc::libswoc)
target_link_libraries(
header_rewrite
- PRIVATE ts::tscore PCRE::PCRE
+ PRIVATE PCRE::PCRE
PUBLIC libswoc::libswoc
)
diff --git a/plugins/header_rewrite/header_rewrite.cc
b/plugins/header_rewrite/header_rewrite.cc
index 06ec0f1696..784b2cf17b 100644
--- a/plugins/header_rewrite/header_rewrite.cc
+++ b/plugins/header_rewrite/header_rewrite.cc
@@ -42,11 +42,10 @@ namespace header_rewrite_ns
DbgCtl dbg_ctl{PLUGIN_NAME_DBG};
DbgCtl pi_dbg_ctl{PLUGIN_NAME};
-PluginFactory plugin_factory;
+std::once_flag initHRWLibs;
+PluginFactory plugin_factory;
} // namespace header_rewrite_ns
-static std::once_flag initHRWLibs;
-
static void
initHRWLibraries(const std::string &dbPath)
{