File: add_debug_symbols

package info (click to toggle)
ansifilter 2.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,076 kB
  • sloc: cpp: 5,280; makefile: 140; sh: 111; python: 73; ansic: 65; tcl: 1
file content (19 lines) | stat: -rw-r--r-- 708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Add debug symbols.
 By default, the CMake build system ignores the debhelper instruction to build
 with debug symbols, so this is added manually.
Author: Sebastian Humenda <shumenda@gmx.de>
Last-Update: 2025-02-20

Index: ansifilter/CMakeLists.txt
===================================================================
--- ansifilter.orig/CMakeLists.txt
+++ ansifilter/CMakeLists.txt
@@ -16,7 +16,7 @@ set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED True)
 
 # Compile options
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -DNDEBUG -D_FILE_OFFSET_BITS=64")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -O2 -DNDEBUG -D_FILE_OFFSET_BITS=64")
 
 # Directories
 set(CORE_DIR src)