275f9df7f1760204f71b3487e91eb6b9c4ad3a34
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / dmidecode / 0001-build-system-fixes.patch
1 Minor build system fixes
2
3 Usual build system fixes to allow CC/CFLAGS/LDFLAGS to be overriden
4 from the command line, and completed by additional flags from the
5 Makefile.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
9 Index: b/Makefile
10 ===================================================================
11 --- a/Makefile
12 +++ b/Makefile
13 @@ -12,9 +12,10 @@
14  #   (at your option) any later version.
15  #
16  
17 -CC      = gcc
18 -CFLAGS  = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
19 -          -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
20 +CC      ?= gcc
21 +override CFLAGS  += \
22 +       -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
23 +        -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
24  #CFLAGS += -DBIGENDIAN
25  #CFLAGS += -DALIGNMENT_WORKAROUND
26  
27 @@ -23,7 +24,7 @@
28  #CFLAGS += -g
29  
30  # Pass linker flags here
31 -LDFLAGS =
32 +override LDFLAGS +=
33  
34  DESTDIR =
35  prefix  = /usr/local