python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / dmidecode / 0001-build-system-fixes.patch
blob00897f82ad014ef22bfbb642299926e70ca45a04
1 Minor build system fixes
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.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Index: b/Makefile
10 ===================================================================
11 --- a/Makefile
12 +++ b/Makefile
13 @@ -12,9 +12,10 @@
14 # (at your option) any later version.
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
25 # Let lseek and mmap support 64-bit wide offsets
26 CFLAGS += -D_FILE_OFFSET_BITS=64
27 @@ -27,7 +28,7 @@ CFLAGS += -O2
28 #CFLAGS += -g
30 # Pass linker flags here
31 -LDFLAGS =
32 +override LDFLAGS +=
34 DESTDIR =
35 prefix = /usr/local