File: buildflags.patch

package info (click to toggle)
libretro-nestopia 1.52.0%2B20230102.gitcb1e24e-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,960 kB
  • sloc: cpp: 107,513; xml: 27,221; python: 1,329; ansic: 772; makefile: 634
file content (37 lines) | stat: -rw-r--r-- 896 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Remove hardcoded build flags
 In particular, this ensures that DEB_BUILD_OPTIONS=noopt works as expected.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2023-01-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/libretro/Makefile
+++ b/libretro/Makefile
@@ -715,27 +715,6 @@ endif
 CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 
-ifeq ($(DEBUG), 1)
-ifneq (,$(findstring msvc,$(platform)))
-CFLAGS   += -MTd
-CXXFLAGS += -MTd
-CFLAGS   += -Od -Zi -D_DEBUG
-CXXFLAGS += -Od -Zi -D_DEBUG
-else
-CFLAGS   += -O0 -g
-CXXFLAGS += -O0 -g
-endif
-CFLAGS   += -DDEBUG
-CXXFLAGS += -DDEBUG
-else
-ifneq (,$(findstring msvc,$(platform)))
-CFLAGS   += -MT
-CXXFLAGS += -MT
-endif
-CFLAGS   += -O2 -DNDEBUG
-CXXFLAGS += -O2 -DNDEBUG
-endif
-
 CORE_DIR = ..
 
 include Makefile.common