dropbear: honour CFLAGS while building bundled libtomcrypt/libtommath
authorKonstantin Demin <rockdrilla@gmail.com>
Tue, 16 Oct 2018 13:31:32 +0000 (16:31 +0300)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 8 Nov 2018 10:07:05 +0000 (11:07 +0100)
commit94e46a50b4a73ba7bafa4d73d572307e52d00db4
tree388fb4ae4988b09e574d974b9f356d10023d7d10
parent600d2091c90f63346f8b3dfc652b135ace624dd5
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]