ref: 7304e328fb61680d092bee6bef93d86117a9aa0c
parent: f24ad4cf0d44c40185c5f096d49cbfb0cc181a45
author: Ralph Giles <giles@thaumas.net>
date: Wed Jun 24 10:57:16 EDT 2020
mingw: Build against openssl 1.0.2u. Download the most recent working release of openssl. - Enable asm, since it seems to work now. - Link ssl and crypto libraries statically, since the dll target seems to be broken. The 1.0.2 series of openssl releases is no longer supported. However, 1.1.1 and later broke the hooks we were using to reference the Windows certificate store, so this is also the newest release where opusurl works. As such, this shouldn't be used in production (unless you have a support contract for openssl!) but it's a useful reference configuration to have in the repository. Hopefully a replacement api will be available in openssl 3 or 4 and we can port to that for future releases.
--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -11,8 +11,8 @@
opus_URL := https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz
opus_SHA := 65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d
-ssl_URL := https://openssl.org/source/openssl-1.1.1g.tar.gz
-ssl_SHA := ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
+ssl_URL := https://openssl.org/source/openssl-1.0.2u.tar.gz
+ssl_SHA := ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
all: $(DEPS)
@@ -78,7 +78,7 @@
$(MAKE) -C $< install
ssl_BUILD: $(ssl_DIR)
- cd $< && ./Configure shared mingw no-asm \
+ cd $< && ./Configure mingw \
--prefix=$(CURDIR) \
--cross-compile-prefix=$(TOOL_PREFIX)-
$(MAKE) -C $< depend
@@ -94,8 +94,8 @@
zip -r $@ $</*
@echo $@ ready to go.
-$(DIST): $(addprefix $(CURDIR)/bin/, libogg-0.dll libopus-0.dll libssl-1_1.dll)
- cd .. && make install
+$(DIST): $(addprefix $(CURDIR)/bin/, libogg-0.dll libopus-0.dll)
+ #cd .. && make install
mkdir -p $(DIST)
cp ../AUTHORS ../COPYING ../README.md ../include/opusfile.h $@
cp ../.libs/libopusfile-0.dll $@