dropbear: bump to 2020.79
[openwrt/staging/chunkeey.git] / package / network / services / dropbear / patches / 901-bundled-libs-cflags.patch
1 --- a/libtomcrypt/makefile_include.mk
2 +++ b/libtomcrypt/makefile_include.mk
3 @@ -94,6 +94,13 @@ endif
4
5 LTC_CFLAGS += -Wno-type-limits
6
7 +ifdef OPENWRT_BUILD
8 + ifeq (-Os,$(filter -Os,$(CFLAGS)))
9 + LTC_CFLAGS += -DLTC_SMALL_CODE
10 + endif
11 +else
12 + ### ! OPENWRT_BUILD
13 +
14 ifdef LTC_DEBUG
15 $(info Debug build)
16 # compile for DEBUGGING (required for ccmalloc checking!!!)
17 @@ -121,6 +128,9 @@ endif
18 endif # COMPILE_SMALL
19 endif # COMPILE_DEBUG
20
21 + ### ! OPENWRT_BUILD
22 +endif
23 +
24
25 ifneq ($(findstring clang,$(CC)),)
26 LTC_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header -Wno-missing-field-initializers
27 --- a/libtommath/makefile_include.mk
28 +++ b/libtommath/makefile_include.mk
29 @@ -70,6 +70,9 @@ else
30 LTM_CFLAGS += -Wsystem-headers
31 endif
32
33 +ifndef OPENWRT_BUILD
34 + ### ! OPENWRT_BUILD
35 +
36 ifdef COMPILE_DEBUG
37 #debug
38 LTM_CFLAGS += -g3
39 @@ -90,6 +93,9 @@ endif
40
41 endif # COMPILE_SIZE
42
43 + ### ! OPENWRT_BUILD
44 +endif
45 +
46 ifneq ($(findstring clang,$(CC)),)
47 LTM_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header
48 endif