From a077d6fd135f8fd80c97441e75b018d05a8c7a1b Mon Sep 17 00:00:00 2001 From: wangguibao Date: Fri, 29 Mar 2019 17:56:57 +0800 Subject: [PATCH] Add -fPIC --- configure/BCLOUD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure/BCLOUD b/configure/BCLOUD index 0299ed3f..f1ddeccb 100644 --- a/configure/BCLOUD +++ b/configure/BCLOUD @@ -3,6 +3,13 @@ WORKROOT('../../../../') ImportConfigsFrom('..') +# +#Preprocessor flags. +CPPFLAGS(r'-D_GNU_SOURCE -D__STDC_LIMIT_MACROS') +#CPPFLAGS(r'-DVERSION=\"%s\"' % SVN_LAST_CHANGED_REV()) + +#C++ flags. +CXXFLAGS('-g -O2 -pipe -W -Wall -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -Wno-unused-variable -Wno-unused-local-typedefs -Wno-sign-compare -std=c++11') INCPATHS('$INC') INCPATHS('$OUT_ROOT/third-64/protobuf/output/include') -- GitLab