Adar Dembo has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/12162 )

Change subject: Support CXXFLAGS
......................................................................

Support CXXFLAGS

I ran into a case when building Kudu in native-toolchain
where I want to build Kudu with flags matching those used
by other libraries. Specifically, "-D_GLIBCXX_USE_CXX11_ABI=0"
is needed to allow linking with other libraries built with
that flag. I'm doing this to make it easier to stage a GCC
upgrade in Impala.

By default CMake puts CXXFLAGS into CMAKE_CXX_FLAGS but
this is then clobbered by Kudu's CMake script.
See https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html

The fix is to append to CMAKE_CXX_FLAGS instead of overwriting it.

Change-Id: Id9dcad5ccb4fc4c081d96eaa40957175731c7a9e
Reviewed-on: http://gerrit.cloudera.org:8080/12162
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <[email protected]>
---
M CMakeLists.txt
1 file changed, 7 insertions(+), 6 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Adar Dembo: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/12162
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id9dcad5ccb4fc4c081d96eaa40957175731c7a9e
Gerrit-Change-Number: 12162
Gerrit-PatchSet: 4
Gerrit-Owner: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tim Armstrong <[email protected]>

Reply via email to