dropbear: honour CFLAGS while building bundled libtomcrypt/libtommath
authorKonstantin Demin <rockdrilla@gmail.com>
Mon, 25 Mar 2019 18:41:27 +0000 (21:41 +0300)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 25 Mar 2019 21:25:33 +0000 (22:25 +0100)
commitddf1a063261202e92caf58f18a1afa0085de9b8d
tree4f71c1fe0cccf540a42550e677305bd68711dabc
parent9c3bfd0906398e9f508c4207bfb16b697e2f47be
dropbear: honour CFLAGS while building bundled libtomcrypt/libtommath

Felix Fietkau pointed out that bundled libtomcrypt/libtommath do funny stuff with CFLAGS.
fix this with checking environment variable OPENWRT_BUILD in both libs.
change in dropbear binary size is drastical: 221621 -> 164277.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
package/network/services/dropbear/patches/901-bundled-libs-cflags.patch [new file with mode: 0644]