add udev package
[openwrt/svn-archive/archive.git] / openwrt / package / udev / patches / 01-no_debug.patch
1 diff -ruN udev-077-old/Makefile udev-077-new/Makefile
2 --- udev-077-old/Makefile 2005-12-04 03:01:48.000000000 +0100
3 +++ udev-077-new/Makefile 2005-12-07 16:48:11.000000000 +0100
4 @@ -136,7 +136,7 @@
5 # check if compiler option is supported
6 cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;}
7
8 -CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
9 +CFLAGS = -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
10 WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \
11 -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
12 -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
13 @@ -159,7 +159,7 @@
14
15 # if DEBUG is enabled, then we do not strip
16 ifeq ($(strip $(DEBUG)),true)
17 - CFLAGS += -DDEBUG
18 + CFLAGS += -g -DDEBUG
19 STRIPCMD =
20 endif
21