summaryrefslogtreecommitdiffstats
path: root/src/openssl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/openssl.mk')
-rw-r--r--src/openssl.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openssl.mk b/src/openssl.mk
index 3059727..80a57d2 100644
--- a/src/openssl.mk
+++ b/src/openssl.mk
@@ -22,13 +22,14 @@ define $(PKG)_BUILD
cd '$(1)' && CC='$(TARGET)-gcc' ./Configure \
mingw \
zlib \
- no-shared \
+ $(if $(BUILD_STATIC),no-,)shared \
no-capieng \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' install -j 1 \
CC='$(TARGET)-gcc' \
RANLIB='$(TARGET)-ranlib' \
- AR='$(TARGET)-ar rcu'
+ AR='$(TARGET)-ar rcu' \
+ CROSS_COMPILE='$(TARGET)-'
endef
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst mingw ,mingw64 ,$($(PKG)_BUILD))