[package] update axTLS to 1.2.2 (#5167)
[openwrt/svn-archive/archive.git] / libs / axtls / patches / 001-opt_flags.patch
1 diff -pruN axTLS.orig/config/makefile.conf axTLS/config/makefile.conf
2 --- axTLS.orig/config/makefile.conf 2009-05-20 15:27:07.425684975 +0200
3 +++ axTLS/config/makefile.conf 2009-05-20 15:29:51.697489368 +0200
4 @@ -105,20 +105,23 @@ endif
5 endif
6
7 ifdef CONFIG_DEBUG
8 -CFLAGS += -g
9 +OPT_CFLAGS = -g
10 else
11 -LDFLAGS += -s
12 +OPT_LDFLAGS = -s
13 ifdef CONFIG_PLATFORM_SOLARIS
14 -CFLAGS += -O
15 +OPT_CFLAGS = -O
16 else
17 -CFLAGS += -O3
18 +OPT_CFLAGS = -O3
19 endif
20
21 endif # CONFIG_DEBUG
22 endif # WIN32
23
24 -CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
25 -LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
26 +EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
27 +EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
28 +
29 +CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS)
30 +LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS)
31
32 endif # not 'clean'
33