]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/httping/httping-override-cflags.patch
fs/common.mk: delay evaluation of variables
[coffee/buildroot.git] / package / httping / httping-override-cflags.patch
1 From 66f5811dd45fa27a7bfacf946dfefd16d765bb4d Mon Sep 17 00:00:00 2001
2 From: Gilles Talis <gilles.talis@gmail.com>
3 Date: Mon, 14 Jan 2013 11:48:00 -0800
4 Subject: [PATCH] allow CFLAGS/LDFLAGS to be overriden from command line
5
6 Ensure required CFLAGS/LDFLAGS are appended to those provided in command line
7
8 Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
9 ---
10  Makefile |   12 ++++++------
11  1 files changed, 6 insertions(+), 6 deletions(-)
12
13 diff --git a/Makefile b/Makefile
14 index 4c4f6a8..fdbb4cb 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -19,7 +19,7 @@ TARGET=httping
18  DEBUG=yes
19  WFLAGS=-Wall -W
20  OFLAGS=-O3
21 -CFLAGS+=$(WFLAGS) $(OFLAGS) -DVERSION=\"$(VERSION)\"
22 +override CFLAGS+=$(WFLAGS) $(OFLAGS) -DVERSION=\"$(VERSION)\"
23
24  PACKAGE=$(TARGET)-$(VERSION)
25  PREFIX=/usr
26 @@ -48,19 +48,19 @@ DOCS=license.txt license.OpenSSL readme.txt
27  # TFO=yes
28
29  ifeq ($(SSL),no)
30 -CFLAGS+=-DNO_SSL
31 +override CFLAGS+=-DNO_SSL
32  else
33  OBJS+=mssl.o
34 -LDFLAGS+=-lssl -lcrypto
35 +override LDFLAGS+=-lssl -lcrypto
36  endif
37
38  ifeq ($(TFO),yes)
39 -CFLAGS+=-DTCP_TFO
40 +override CFLAGS+=-DTCP_TFO
41  endif
42
43  ifeq ($(DEBUG),yes)
44 -CFLAGS+=-D_DEBUG -ggdb
45 -LDFLAGS+=-g
46 +override CFLAGS+=-D_DEBUG -ggdb
47 +override LDFLAGS+=-g
48  endif
49
50  ifeq ($(ARM),yes)
51 --
52 1.7.4.1
53