File: read-compiler-flags-from-environment.patch

package info (click to toggle)
railcontrol 24%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,540 kB
  • sloc: cpp: 40,823; javascript: 2,509; makefile: 110; php: 97; sh: 60
file content (17 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: railcontrol/Makefile
===================================================================
--- railcontrol.orig/Makefile	2025-11-22 14:52:24.719817885 +0100
+++ railcontrol/Makefile	2025-11-23 12:22:38.112207178 +0100
@@ -1,9 +1,10 @@
 
 RAILCONTROL_VERSION := 24
 
-CXXFLAGS=-I. -g -O2 -Wall -Wextra -pedantic -Werror -Wno-missing-braces -std=c++11 -D_GNU_SOURCE
+CXXFLAGS+=-I. -Wall -Wextra -pedantic -Werror -Wno-missing-braces -std=c++11 -D_GNU_SOURCE
+CXXFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
 CXXFLAGSAMALGAMATION=-I. -g -O2 -Wall -Wextra -pedantic -Werror -Wno-missing-braces -std=c++11
-LDFLAGS=-g
+LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
 LIBS=-lpthread -ldl -lz -lsqlite3
 LIBSAMALGAMATION=-lpthread -ldl