]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/dmidecode/0001-build-system-fixes.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / 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  
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
29  
30  # Pass linker flags here
31 -LDFLAGS =
32 +override LDFLAGS +=
33  
34  DESTDIR =
35  prefix  = /usr/local