From 7cace2ef3e0518679a9a4c7c1b24612541ed2c32 Mon Sep 17 00:00:00 2001 From: Wei Su Date: Tue, 25 Aug 2026 13:53:04 -0700 Subject: [PATCH] Fix mock_services linking in self-contained build Reviewed By: charles-typ Differential Revision: D116970906 --- .../src/workloads/ranking/mock_services/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/feedsim/third_party/src/workloads/ranking/mock_services/CMakeLists.txt b/packages/feedsim/third_party/src/workloads/ranking/mock_services/CMakeLists.txt index 889c6bd2f..4c8a54a44 100644 --- a/packages/feedsim/third_party/src/workloads/ranking/mock_services/CMakeLists.txt +++ b/packages/feedsim/third_party/src/workloads/ranking/mock_services/CMakeLists.txt @@ -190,6 +190,12 @@ target_link_libraries(mock_services # is a no-op. See the --gc-sections comment on the compile # options below for the CentOS path. ${LIBURING_LIBRARY} + # gflags: folly/glog use DEFINE_FLAG macros which reference + # google::FlagRegisterer. LeafNodeRank/DriverNodeRank link GFLAGS_TARGET + # (gflags_static for self-contained builds, gflags for traditional). + # mock_services was missing it, causing "undefined reference to + # FlagRegisterer" on static-link aarch64 builds. + ${GFLAGS_TARGET} ) target_compile_options(mock_services PUBLIC -fno-omit-frame-pointer