a27b3a44910f0225365025e2b788423ac9844a4a
[openwrt/svn-archive/archive.git] / libs / axtls / patches / 001-opt_flags.patch
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
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