diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-09-20 15:19:38 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-09-20 15:19:38 +0000 |
| commit | 8d66edc4085db428e67223f0f71cde6b3640f27e (patch) | |
| tree | da9dcd13d59b36f7350d3938f9094cb2ecc4449a /openembedded/packages/udev/udev-070/flags.patch | |
| parent | b4a7122cacef647dbec3db5c9ebe1e504a7670df (diff) | |
| download | poky-8d66edc4085db428e67223f0f71cde6b3640f27e.tar.gz | |
pcmciautils and udev updates. Slowly aiming to get rid of hotplug and pcmcia-cs
git-svn-id: https://svn.o-hand.com/repos/poky@27 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/udev/udev-070/flags.patch')
| -rw-r--r-- | openembedded/packages/udev/udev-070/flags.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/openembedded/packages/udev/udev-070/flags.patch b/openembedded/packages/udev/udev-070/flags.patch new file mode 100644 index 0000000000..bd04041f78 --- /dev/null +++ b/openembedded/packages/udev/udev-070/flags.patch | |||
| @@ -0,0 +1,70 @@ | |||
| 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 | |||
