From 360f90e495c4d168a647b0f224fb09c1ef142a32 Mon Sep 17 00:00:00 2001 From: ivanallen Date: Tue, 20 Aug 2024 22:40:06 +0800 Subject: [PATCH] [#2740] fix example/rdma_performance compilation error --- example/rdma_performance/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/rdma_performance/Makefile b/example/rdma_performance/Makefile index 9e3e262778..60c59702a7 100644 --- a/example/rdma_performance/Makefile +++ b/example/rdma_performance/Makefile @@ -21,7 +21,7 @@ include $(BRPC_PATH)/config.mk # Notes on the flags: # 1. Added -fno-omit-frame-pointer: perf/tcmalloc-profiler use frame pointers by default # 2. Added -D__const__= : Avoid over-optimizations of TLS variables by GCC>=4.8 -CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer +CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__=__unused__ -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer ifeq ($(NEED_GPERFTOOLS), 1) CXXFLAGS+=-DBRPC_ENABLE_CPU_PROFILER endif @@ -95,4 +95,5 @@ endif %.o:%.cc @echo "> Compiling $@" - $(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@ \ No newline at end of file + $(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@ +