]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/udev/udev-070/flags.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / udev / udev-070 / flags.patch
1 --- udev-070/Makefile~flags     2005-09-15 01:19:07 +0200
2 +++ udev-070/Makefile   2005-09-16 11:44:37 +0200
3 @@ -160,36 +160,36 @@
4  # check if compiler option is supported
5  cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;}
6  
7 -CFLAGS         += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith \
8 +override CFLAGS                += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith \
9                    -Wstrict-prototypes -Wsign-compare
10 -CFLAGS         += $(call cc-supports, -Wdeclaration-after-statement, )
11 -CFLAGS         += -pipe
12 -CFLAGS         += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
13 +override CFLAGS                += $(call cc-supports, -Wdeclaration-after-statement, )
14 +override CFLAGS                += -pipe
15 +override CFLAGS                += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
16  
17  # use '-Os' optimization if available, else use -O2
18  OPTFLAGS := $(call cc-supports, -Os, -O2)
19  
20  # include our local copy of libsysfs
21 -CFLAGS +=      -I$(PWD)/libsysfs/sysfs \
22 +override CFLAGS +=     -I$(PWD)/libsysfs/sysfs \
23                 -I$(PWD)/libsysfs
24  
25  ifeq ($(strip $(USE_LOG)),true)
26 -       CFLAGS += -DUSE_LOG
27 +       override CFLAGS += -DUSE_LOG
28  endif
29  
30  # if DEBUG is enabled, then we do not strip or optimize
31  ifeq ($(strip $(DEBUG)),true)
32 -       CFLAGS  += -O1 -g -DDEBUG
33 +       override CFLAGS  += -O1 -g -DDEBUG
34         LDFLAGS += -Wl
35         STRIPCMD = /bin/true -Since_we_are_debugging
36  else
37 -       CFLAGS  += $(OPTFLAGS) -fomit-frame-pointer
38 +       override CFLAGS  += $(OPTFLAGS) -fomit-frame-pointer
39         LDFLAGS += -s -Wl
40         STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
41  endif
42  
43  ifeq ($(strip $(USE_GCOV)),true)
44 -       CFLAGS += -fprofile-arcs -ftest-coverage
45 +       override CFLAGS += -fprofile-arcs -ftest-coverage
46         LDFLAGS = -fprofile-arcs
47  endif
48  
49 @@ -200,18 +200,18 @@
50         CC              = $(KLCC)
51         LD              = $(KLCC)
52  else
53 -       CFLAGS          += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
54 +       override CFLAGS         += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
55         LDFLAGS         += -Wl,-warn-common
56  endif
57  
58  ifeq ($(strip $(USE_SELINUX)),true)
59         UDEV_OBJS += udev_selinux.o
60         LIB_OBJS += -lselinux
61 -       CFLAGS += -DUSE_SELINUX
62 +       override CFLAGS += -DUSE_SELINUX
63  endif
64  
65  ifeq ($(strip $(USE_STATIC)),true)
66 -       CFLAGS += -DUSE_STATIC
67 +       override CFLAGS += -DUSE_STATIC
68         LDFLAGS += -static
69  endif
70