Skip to content

Commit dd6951f

Browse files
Use compiler flag -gdwarf-5 as per BinSkim (#101)
1 parent b4550f9 commit dd6951f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libpsl-native/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(PSL-NATIVE)
33

44
# Can't use add_compile_options with 2.8.11
55
set(CMAKE_BUILD_TYPE "Release")
6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2")
6+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2 -gdwarf-5")
77

88
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR "FreeBSD")
99
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,relro,-z,now")

0 commit comments

Comments
 (0)