disable-opt-debug-cflags.patch 968 B

12345678910111213141516171819202122232425
  1. diff -Nur uClibc-0.9.30.1.orig/Rules.mak uClibc-0.9.30.1/Rules.mak
  2. --- uClibc-0.9.30.1.orig/Rules.mak 2009-03-02 22:10:04.000000000 +0100
  3. +++ uClibc-0.9.30.1/Rules.mak 2009-06-18 16:02:34.000000000 +0200
  4. @@ -150,9 +150,10 @@
  5. # Flags in OPTIMIZATION are used only for non-debug builds
  6. OPTIMIZATION:=
  7. # Use '-Os' optimization if available, else use -O2, allow Config to override
  8. -OPTIMIZATION+=$(call check_gcc,-Os,-O2)
  9. +# disable, let OpenADK do the optimization
  10. +#OPTIMIZATION+=$(call check_gcc,-Os,-O2)
  11. # Use the gcc 3.4 -funit-at-a-time optimization when available
  12. -OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
  13. +#OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
  14. GCC_MAJOR_VER?=$(shell $(CC) -dumpversion | cut -d . -f 1)
  15. #GCC_MINOR_VER?=$(shell $(CC) -dumpversion | cut -d . -f 2)
  16. @@ -547,7 +548,7 @@
  17. LDFLAGS:=$(LDFLAGS_NOSTRIP) -Wl,-z,defs
  18. ifeq ($(DODEBUG),y)
  19. -CFLAGS += -O0 -g3
  20. +CFLAGS +=
  21. else
  22. CFLAGS += $(OPTIMIZATION) $(XARCH_CFLAGS)
  23. endif