wally: build debug or release according to the top-level configuration
Wally release builds are significantly faster than debug builds. Plus we pass down our build flags to libsecp, which means release builds have been disabling the asm optimisations for both libraries. Changelog-Changed: Enable optimizations for libwally/libsecp256k1-zkp Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
This commit is contained in:
committed by
Christian Decker
parent
1b2d81f7ce
commit
ffeb5553a5
6
external/Makefile
vendored
6
external/Makefile
vendored
@@ -79,6 +79,10 @@ $(TARGET_DIR)/libsecp256k1.% $(TARGET_DIR)/libwallycore.%: $(TARGET_DIR)/libwall
|
||||
$(MAKE) -C $(TARGET_DIR)/libwally-core-build DESTDIR=$$(pwd)/$(TARGET_DIR) install-exec
|
||||
|
||||
# Build libwally-core.
|
||||
ifeq ($(DEBUGBUILD),1)
|
||||
WALLY_OPTS=--enable-debug
|
||||
endif
|
||||
|
||||
$(TARGET_DIR)/libwally-core-build/src/libwallycore.% $(TARGET_DIR)/libwally-core-build/src/secp256k1/libsecp256k1.%: $(LIBWALLY_HEADERS) $(LIBSECP_HEADERS)
|
||||
cd external/libwally-core && ./tools/autogen.sh
|
||||
mkdir -p ${TARGET_DIR}/libwally-core-build
|
||||
@@ -89,7 +93,7 @@ $(TARGET_DIR)/libwally-core-build/src/libwallycore.% $(TARGET_DIR)/libwally-core
|
||||
--enable-shared=no \
|
||||
--prefix=/ \
|
||||
--libdir=/ \
|
||||
--enable-debug \
|
||||
$(WALLY_OPTS) \
|
||||
&& $(MAKE)
|
||||
|
||||
# If we tell Make that the above builds both, it runs it twice in
|
||||
|
||||
Reference in New Issue
Block a user