dropbear: bump to 2022.83
[openwrt/staging/robimarko.git] / package / network / services / dropbear / patches / 901-bundled-libs-cflags.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -45,11 +45,8 @@ fi
4 # LTM_CFLAGS is given to ./configure by the user,
5 # DROPBEAR_LTM_CFLAGS is substituted in the LTM Makefile.in
6 DROPBEAR_LTM_CFLAGS="$LTM_CFLAGS"
7 -if test -z "$DROPBEAR_LTM_CFLAGS"; then
8 - DROPBEAR_LTM_CFLAGS="-O3 -funroll-loops -fomit-frame-pointer"
9 -fi
10 -AC_MSG_NOTICE(Setting LTM_CFLAGS to $DROPBEAR_LTM_CFLAGS)
11 -AC_ARG_VAR(LTM_CFLAGS, CFLAGS for bundled libtommath. Default -O3 -funroll-loops -fomit-frame-pointer)
12 +AC_MSG_NOTICE(Setting LTM_CFLAGS to '$DROPBEAR_LTM_CFLAGS')
13 +AC_ARG_VAR(LTM_CFLAGS, CFLAGS for bundled libtommath. Defaults to empty string)
14 AC_SUBST(DROPBEAR_LTM_CFLAGS)
15
16 AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign])
17 --- a/libtomcrypt/src/headers/tomcrypt_dropbear.h
18 +++ b/libtomcrypt/src/headers/tomcrypt_dropbear.h
19 @@ -7,8 +7,10 @@
20
21 /* Use small code where possible */
22 #if DROPBEAR_SMALL_CODE
23 +#ifndef LTC_SMALL_CODE
24 #define LTC_SMALL_CODE
25 #endif
26 +#endif
27
28 /* Fewer entries needed */
29 #define TAB_SIZE 5