01-no_debug.patch 849 B

123456789101112131415161718192021
  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. -CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
  8. +CFLAGS = -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
  9. WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \
  10. -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
  11. -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
  12. @@ -159,7 +159,7 @@
  13. # if DEBUG is enabled, then we do not strip
  14. ifeq ($(strip $(DEBUG)),true)
  15. - CFLAGS += -DDEBUG
  16. + CFLAGS += -g -DDEBUG
  17. STRIPCMD =
  18. endif