raspberrypi-userland/SOURCES/fix-debuginfo.patch

29 lines
895 B
Diff
Raw Permalink Normal View History

2023-09-11 12:41:45 +00:00
From a62060f41dec44a510ec3117d5a818ead9ecbc92 Mon Sep 17 00:00:00 2001
From: Kopylov Pavel <pakopylov7@gmail.com>
Date: Mon, 11 Sep 2023 14:11:51 +0200
Subject: [PATCH] Add -g param during building process
---
CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe67fc8..f0fe535 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,6 +51,11 @@ add_definitions(-DEGL_SERVER_DISPMANX)
add_definitions(-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64)
add_definitions(-D_GNU_SOURCE)
+# add debuginfo to be accessible
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -g")
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -g")
+
# do we actually need this?
add_definitions(-D__VIDEOCORE4__)
add_definitions(-DTV_SUPPORTED_MODE_NO_DEPRECATED)
--
2.34.1