summaryrefslogtreecommitdiff
path: root/networking/tls.h
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-15 13:42:19 +0200
committerDenys Vlasenko2017-07-15 13:42:19 +0200
commit9887f93eefbb384e3ebdbf767847934d2fd6c0ff (patch)
treedd802644f3be53f5a179ac2a74ee1c2d78de78f1 /networking/tls.h
parente9a25ac92495d8276669574e03d3b03e9846dd1c (diff)
downloadbusybox-9887f93eefbb384e3ebdbf767847934d2fd6c0ff.zip
busybox-9887f93eefbb384e3ebdbf767847934d2fd6c0ff.tar.gz
tls: fix build problem on non-static i386
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.h')
-rw-r--r--networking/tls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/tls.h b/networking/tls.h
index d487f38..b80cc64 100644
--- a/networking/tls.h
+++ b/networking/tls.h
@@ -26,8 +26,10 @@
#undef USE_SEED
/* pstm: multiprecision numbers */
#undef DISABLE_PSTM
-#if defined(__GNUC__) && defined(__i386__)
+#if defined(__GNUC__) && defined(__i386__) && ENABLE_STATIC
/* PSTM_X86 works correctly. +25 bytes. */
+ /* Only enabled on static build since tls_pstm_mul_comba.c::MULADD
+ * and tls_pstm_sqr_comba.c::SQRADD2 need too many registers, choke when ebx is not available */
# define PSTM_32BIT
# define PSTM_X86
#endif