[packages] axtls: update to 1.2.4, add new axtlswrap (SSL/TLS wrapper)
[openwrt/svn-archive/archive.git] / libs / axtls / patches / 001-opt_flags.patch
1 --- a/config/makefile.conf
2 +++ b/config/makefile.conf
3 @@ -105,20 +105,23 @@ endif
4 endif
5
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
20 endif # CONFIG_DEBUG
21 endif # WIN32
22
23 -CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
24 -LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
25 +EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
26 +EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
27 +
28 +CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS)
29 +LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS)
30
31 endif # not 'clean'
32