dbfa0084cb5d6ad392c9f63b5b0779ce4608206f
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / iprutils / 0002-Allow-CFLAGS-to-be-extended-from-the-enviro.patch
1 From 9a46afebdc63ba67cd95748f898969d6c622a129 Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Wed, 17 Sep 2014 18:08:31 +0100
4 Subject: [PATCH 1/2] iprutils: Allow CFLAGS to be extended from the environment
5
6 We also remove -g, since we don't necessarily want to build with
7 debugging symbols. Buildroot will add -g if needed.
8
9 Based on the former patch by Thomas Petazzoni.
10
11 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
12 ---
13  Makefile |    2 +-
14  1 files changed, 1 insertions(+), 1 deletions(-)
15
16 diff --git a/Makefile b/Makefile
17 index c4e2427..66c4942 100644
18 --- a/Makefile
19 +++ b/Makefile
20 @@ -9,7 +9,7 @@ CC = gcc
21  
22  include version.mk
23  
24 -CFLAGS += -g -Wall $(IPR_DEFINES)
25 +override CFLAGS += -Wall $(IPR_DEFINES)
26  UTILS_VER = $(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL)
27  TAR = cd .. && tar -zcpf iprutils-$(UTILS_VER)-src.tgz --exclude .git --exclude CVS --exclude applied-patches --exclude series --exclude txt --exclude pc --exclude patches --exclude debug --exclude *~* iprutils
28  
29 -- 
30 1.7.1
31