File: select_compiler.patch

package info (click to toggle)
assaultcube 1.3.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, sid, trixie
  • size: 4,344 kB
  • sloc: cpp: 56,878; sh: 11,155; ansic: 4,544; makefile: 385
file content (20 lines) | stat: -rw-r--r-- 881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Patch makefile not to set CXX if set already
 This prevents to externally set the compiler, and with clang as
 default, we FTBFS with dh_dwz.
Author: Tobias Frost <tobi@debian.rg>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016935
Forwarded: not-needed, Debian specific
Last-Update: 2022-09-02 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/source/src/Makefile
+++ b/source/src/Makefile
@@ -6,7 +6,7 @@
 # found to have been caused by the g++ compiler in the past. This seems to have
 # been fixed now by relaxing the optimization that g++ does, so although we'll
 # continue using clang++ (just in case), you can use g++ if you prefer.
-CXX=clang++
+CXX?=clang++
 
 # call like 'DEBUGBUILD=1 make' to compile a debug version of AssaultCube.
 ifdef DEBUGBUILD