901-bundled-libs-cflags.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -44,11 +44,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. AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign])
  16. --- a/libtomcrypt/src/headers/tomcrypt_dropbear.h
  17. +++ b/libtomcrypt/src/headers/tomcrypt_dropbear.h
  18. @@ -7,8 +7,10 @@
  19. /* Use small code where possible */
  20. #if DROPBEAR_SMALL_CODE
  21. +#ifndef LTC_SMALL_CODE
  22. #define LTC_SMALL_CODE
  23. #endif
  24. +#endif
  25. /* Fewer entries needed */
  26. #define TAB_SIZE 5