]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/udev/udev-065/flags.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / udev / udev-065 / flags.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- udev-065/Makefile~flags
7 +++ udev-065/Makefile
8 @@ -106,11 +106,11 @@
9  # check if compiler option is supported
10  cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;}
11  
12 -CFLAGS         += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith \
13 +override CFLAGS                += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith \
14                    -Wstrict-prototypes -Wsign-compare
15 -CFLAGS         += $(call cc-supports, -Wdeclaration-after-statement, )
16 -CFLAGS         += -pipe
17 -CFLAGS         += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
18 +override CFLAGS                += $(call cc-supports, -Wdeclaration-after-statement, )
19 +override CFLAGS                += -pipe
20 +override CFLAGS                += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
21  
22  # use '-Os' optimization if available, else use -O2
23  OPTFLAGS := $(call cc-supports, -Os, -O2)
24 @@ -154,16 +154,16 @@
25  
26  SYSFS = $(PWD)/libsysfs/sysfs.a
27  
28 -CFLAGS +=      -I$(PWD)/libsysfs/sysfs \
29 +override CFLAGS +=     -I$(PWD)/libsysfs/sysfs \
30                 -I$(PWD)/libsysfs
31  
32  ifeq ($(strip $(USE_LOG)),true)
33 -       CFLAGS += -DUSE_LOG
34 +       override CFLAGS += -DUSE_LOG
35  endif
36  
37  # if DEBUG is enabled, then we do not strip or optimize
38  ifeq ($(strip $(DEBUG)),true)
39 -       CFLAGS  += -O1 -g -DDEBUG
40 +       override CFLAGS  += -DDEBUG
41         LDFLAGS += -Wl
42         STRIPCMD = /bin/true -Since_we_are_debugging
43  else
44 @@ -180,18 +180,18 @@
45         CC              = $(KLCC)
46         LD              = $(KLCC)
47  else
48 -       CFLAGS          += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
49 +       override CFLAGS         += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
50  endif
51  
52  ifeq ($(strip $(USE_SELINUX)),true)
53         UDEV_OBJS += udev_selinux.o
54         LIB_OBJS += -lselinux
55 -       CFLAGS += -DUSE_SELINUX
56 +       override CFLAGS += -DUSE_SELINUX
57  endif
58  
59  ifeq ($(strip $(USE_STATIC)),true)
60 -       CFLAGS += -DUSE_STATIC
61 -       LDFLAGS += -static
62 +       override CFLAGS += -DUSE_STATIC
63 +       override LDFLAGS += -static
64  endif
65  
66  ifeq ($(strip $(V)),false)