Debian Codegraph @

debian/patches/force-unit-compilation-in-release-mode.diff

raw symbols SCIP
1 Description: Force compilation of units in release mode and enable hardening.
2 Compilation of units in release mode is mandatory in order to avoid FPC
3 trying to recompile them during compilation of third party code.
4 .
5 Enable hardening by including related configuration file shipped by fpc.
6 Author: Abou Al Montacir <[email protected]>
7 Origin: Debian
8 Forwarded: not-needed
9 Last-Update: 2025-02-08
10
11 Index: castle-game-engine/Makefile
12 ===================================================================
13 --- castle-game-engine.orig/Makefile
14 +++ castle-game-engine/Makefile
15 @@ -479,12 +479,7 @@ build-using-fpmake:
16 @echo 'Running fpmake.'
17 @echo ' If this fails saying that "rtl" is not found -> set FPCDIR environment variable, see http://wiki.freepascal.org/FPMake .'
18 @echo ' If this fails saying that "opengl" package is not found -> you maybe have broken FPC installation without Package.fpc files, consider using "export CASTLE_PACKAGE_NO_DEPENDENCIES=true" as a workaround.'
19 -# Workaround FPC >= 3.x problem (bug?) --- it ignores $FPCDIR, but --globalunitdir works
20 - if [ '(' -n "$(FPCDIR)" ')' ]; then \
21 - ./fpmake --globalunitdir="$(FPCDIR)"; \
22 - else \
23 - ./fpmake; \
24 - fi
25 + ./fpmake -v -o -Ur
26
27 # Full test that fpmake compilation process works
28 # (see https://castle-engine.io/fpmake )
29 diff --git a/castle-fpc.cfg b/castle-fpc.cfg
30 index 7e0af003..f3f25b9b 100644
31 --- a/castle-fpc.cfg
32 +++ b/castle-fpc.cfg
33 @@ -455,4 +455,7 @@
34 -Xs
35 #ENDIF
36
37 +# When compiling on Debian we enable hardening
38 +#INCLUDE hardening
39 +
40 # eof --------------------------------------------------------------------------