File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ LIBBITCOIN_WALLET_TOOL=libbitcoin_wallet_tool.a
50
50
endif
51
51
52
52
LIBBITCOIN_CRYPTO = $(LIBBITCOIN_CRYPTO_BASE )
53
+ if USE_ASM
54
+ LIBBITCOIN_CRYPTO_SSE4 = crypto/libbitcoin_crypto_sse4.la
55
+ LIBBITCOIN_CRYPTO += $(LIBBITCOIN_CRYPTO_SSE4 )
56
+ endif
53
57
if ENABLE_SSE41
54
58
LIBBITCOIN_CRYPTO_SSE41 = crypto/libbitcoin_crypto_sse41.la
55
59
LIBBITCOIN_CRYPTO += $(LIBBITCOIN_CRYPTO_SSE41 )
@@ -541,6 +545,10 @@ libbitcoin_wallet_tool_a_SOURCES = \
541
545
#
542
546
543
547
# crypto #
548
+
549
+ # crypto_base contains the unspecialized (unoptimized) versions of our
550
+ # crypto functions. Functions that require custom compiler flags and/or
551
+ # runtime opt-in are omitted.
544
552
crypto_libbitcoin_crypto_base_la_CPPFLAGS = $(AM_CPPFLAGS )
545
553
546
554
# Specify -static in both CXXFLAGS and LDFLAGS so libtool will only build a
@@ -581,9 +589,12 @@ crypto_libbitcoin_crypto_base_la_SOURCES = \
581
589
crypto/siphash.cpp \
582
590
crypto/siphash.h
583
591
584
- if USE_ASM
585
- crypto_libbitcoin_crypto_base_la_SOURCES += crypto/sha256_sse4.cpp
586
- endif
592
+ # See explanation for -static in crypto_libbitcoin_crypto_base_la's LDFLAGS and
593
+ # CXXFLAGS above
594
+ crypto_libbitcoin_crypto_sse4_la_LDFLAGS = $(AM_LDFLAGS ) -static
595
+ crypto_libbitcoin_crypto_sse4_la_CXXFLAGS = $(AM_CXXFLAGS ) $(PIE_FLAGS ) -static
596
+ crypto_libbitcoin_crypto_sse4_la_CPPFLAGS = $(AM_CPPFLAGS )
597
+ crypto_libbitcoin_crypto_sse4_la_SOURCES = crypto/sha256_sse4.cpp
587
598
588
599
# See explanation for -static in crypto_libbitcoin_crypto_base_la's LDFLAGS and
589
600
# CXXFLAGS above
You can’t perform that action at this time.
0 commit comments