Hi Manish,
Thanks!
Prepared the patch to remove "FORTIFY_SOURCE" from CMakeLists.txt. I didn't find the file attach option so adding the content of patch file.
From: "Vipul Suneja" <vsuneja63@gmail.com>
Date: Tue, 24 July 2020 23:15:34
Subject: [PATCH] disable -D_FORTIFY_SOURCE
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a9bde2..db37f38 100644
--- CMakeLists.txt 2020-07-24 21:23:34.656554304 +0530
+++ CMakeLists.txt 2020-07-24 23:04:57.692606037 +0530
@@ -99,8 +99,7 @@
if (ENABLE_DEBUG)
add_definitions(-DUSE_DEBUG=1)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g3 -ggdb3")
-else()
- add_definitions(-D_FORTIFY_SOURCE=2)
+
endif()
add_executable(gputop gputop/top.c gputop/debugfs.c)