aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/patches/conditionally-define-CFLAGS.patch
blob: ae9dde66500e072cb6d68d68a4ee07f3913d4237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Sean Whitton <spwhitton@spwhitton.name>
Date: Sat, 24 Sep 2016 07:45:04 -0700
Subject: conditionally define CFLAGS

So Debian CFLAGS take precedence.

Forwarded: https://github.com/tsyrogit/zxcvbn-c/pull/7
---
 makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/makefile b/makefile
index fa234c1..ca5c352 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,5 @@
-CFLAGS = -O2 -Wall -Wextra -Wdeclaration-after-statement
-CPPFLAGS = -O2 -Wall -Wextra
+CFLAGS ?= -O2 -Wall -Wextra -Wdeclaration-after-statement
+CPPFLAGS ?= -O2 -Wall -Wextra
 
 WORDS = words-10k-pass.txt words-english.txt words-female.txt words-male.txt words-surname.txt