summaryrefslogtreecommitdiff
path: root/libre/hashcat/fix-make-flags.patch
blob: ed704d612b9155198cae76b8d668df506d289a1e (plain)
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
31
32
33
34
35
36
37
38
39
40
From 62fc436a4f2b1ed3adbab920cf3b1572a5c53e9b Mon Sep 17 00:00:00 2001
From: anthraxx <levente@leventepolyak.net>
Date: Tue, 6 Dec 2016 20:39:04 +0100
Subject: [PATCH] extend global CFLAGS and LDFLAGS to aid distro packaging

This preserves globally defined CFLAGS and LDFLAGS and simply
extends those variables to aid distro based packaging toolchains
and predefined distro wide defaults like SSP, relro etc.

this re-fixes 7f8aaf74302816d03fbff62dab5c987d498acdde after it was
somehow undone ;)
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 308ad41..e7d8307 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -101,7 +101,7 @@ BINARY_NATIVE           := $(PROG_NAME)
 ## General compiler and linker options
 ##
 
-CFLAGS                  := -pipe -std=c99 -Iinclude/ -IOpenCL/
+CFLAGS                  += -pipe -std=c99 -Iinclude/ -IOpenCL/
 CFLAGS                  += -W
 CFLAGS                  += -Wall
 CFLAGS                  += -Wextra
@@ -137,7 +137,7 @@ CFLAGS                  += -ftrapv
 
 #CFLAGS                  += -Wstack-usage=524288
 
-LFLAGS                  :=
+LFLAGS                  := $(LDFLAGS)
 
 ifndef DEBUG
 CFLAGS                  += -O2
-- 
2.10.2