File: allow-cflags-overriding.diff

package info (click to toggle)
john 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 21,504 kB
  • sloc: ansic: 22,788; asm: 5,665; makefile: 898; sh: 518; perl: 158
file content (30 lines) | stat: -rw-r--r-- 858 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
Description: allows FLAGS modification from debian/rules
Author: Ruben Molina <rmolina@udea.edu.co>
Last-Update: 2013-06-04
Forwarded: no

--- a/src/Makefile
+++ b/src/Makefile
@@ -18,7 +18,7 @@
 TR = tr
 SED = sed
 NULL = /dev/null
-CPPFLAGS = -E
+CPPFLAGS += -E
 OMPFLAGS =
 # gcc with OpenMP
 #OMPFLAGS = -fopenmp
@@ -30,11 +30,11 @@
 #OMPFLAGS = -openmp
 # Sun Studio with OpenMP (set the OMP_NUM_THREADS env var at runtime)
 #OMPFLAGS = -xopenmp
-CFLAGS = -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS)
+CFLAGS += -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS)
 # CFLAGS for use on the main john.c file only
 CFLAGS_MAIN = $(CFLAGS)
 ASFLAGS = -c $(OMPFLAGS)
-LDFLAGS = -s $(OMPFLAGS)
+LDFLAGS += -s $(OMPFLAGS)
 OPT_NORMAL = -funroll-loops
 # Remove the "-Os" if you're using an ancient version of gcc
 OPT_INLINE = -Os -funroll-loops -finline-functions