Hi Steve, You will need to pass the cmake flag -DCMAKE_BUILD_TYPE=Debug in ./build.sh. You can find the description of the various CMAKE flags in the comments at the top of the CMakeLists.txt file. https://github.com/linux-rdma/rdma-core/blob/master/CMakeLists.txt#L14 And looks like you can now pass this flag through the EXTRA_CMAKE_FLAGS environment variable. https://github.com/linux-rdma/rdma-core/commit/66a625a0c784a67959246e6b1952767ec300514f Regards -Rohit Zambre On Wed, Apr 4, 2018 at 10:45 AM, Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx> wrote: > Hey Jason, > > Is there an easy way to build rdma-core without -O2 and with -g? I see > these in CMakeCache.txt, but I'm not sure how to tweak them and utilize > them when building. > > //Flags used by the compiler during all build types. > CMAKE_C_FLAGS:STRING= > > //Flags used by the compiler during debug builds. > CMAKE_C_FLAGS_DEBUG:STRING=-g > > //Flags used by the compiler during release builds for minimum > // size. > CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG > > //Default flags for Release configuration > CMAKE_C_FLAGS_RELEASE:STRING=-O2 -g -DNDEBUG > > //Default flags for RelWithDebInfo configuration > CMAKE_C_FLAGS_RELWITHDEBINFO:STRING='-O2 -g ' > > Thanks, > > Steve. > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html