summaryrefslogtreecommitdiff
path: root/flx/dfc/files/9999-MEDIUM-Respect-CFLAGS-and-LDFLAGS.patch
blob: 2a610a4c84ae7a210fb5944c2a31d4ef3d563f70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 250e9014aa4165ece9809d2670df42d34424a1b1 Mon Sep 17 00:00:00 2001
From: Bertrand Jacquin <bertrand@jacquin.bzh>
Date: Sat, 3 Sep 2016 01:15:36 +0100
Subject: [PATCH] MEDIUM: Respect CFLAGS and LDFLAGS

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 97e29da..15e6991 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 BIN=dfc
 SRC=dfc.c
 OBJ=$(SRC:.c=.o)
-CFLAGS=-g -O2
-LDFLAGS=-g -O2 -static
+CFLAGS?=-g -O2
+LDFLAGS?=-g -O2 -static
 
 $(BIN): $(OBJ)
 	$(CC) -o $(BIN) $(OBJ) $(LDFLAGS)