File: 08-optimize.patch

package info (click to toggle)
kakoune 2022.10.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,068 kB
  • sloc: cpp: 31,090; sh: 237; makefile: 179; python: 144; ruby: 60
file content (24 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Do not invoke the compiler with -O0.
  Even though we build kakoune in its "debug" mode to generate
  debug symbols, we do not want its build infrastructure to
  override the compiler flags set by dpkg-buildpackage in
  accordance to way the Debian package is being built.
  .
  Disabling the compiler optimizations also has the unfortunate
  side effect of disabling the build harderning, so we really
  do not want it to happen.
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2020-04-28

--- a/src/Makefile
+++ b/src/Makefile
@@ -12,7 +12,7 @@
 
 ifeq ($(debug),yes)
     CPPFLAGS += -DKAK_DEBUG
-    CXXFLAGS += -O0
+#   CXXFLAGS += -O0
     suffix := .debug
 else
     ifeq ($(debug),no)