1
0

001-opt_flags.patch 882 B

123456789101112131415161718192021222324252627282930313233
  1. diff -ruN axTLS-0.95-old/config/makefile.conf axTLS-0.95-new/config/makefile.conf
  2. --- axTLS-0.95-old/config/makefile.conf 2006-02-28 02:50:28.000000000 +0100
  3. +++ axTLS-0.95-new/config/makefile.conf 2006-05-18 22:24:02.000000000 +0200
  4. @@ -87,20 +87,23 @@
  5. endif
  6. ifdef CONFIG_DEBUG
  7. -CFLAGS += -g
  8. +OPT_CFLAGS = -g
  9. else
  10. -LDFLAGS += -s
  11. +OPT_LDFLAGS = -s
  12. ifdef CONFIG_PLATFORM_SOLARIS
  13. -CFLAGS += -O
  14. +OPT_CFLAGS = -O
  15. else
  16. -CFLAGS += -O3
  17. +OPT_CFLAGS = -O3
  18. endif
  19. endif # CONFIG_DEBUG
  20. endif # WIN32
  21. -CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
  22. -LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
  23. +EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
  24. +EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
  25. +
  26. +CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS)
  27. +LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS)
  28. endif # not 'clean'