Skip to content

Commit 7304e32

Browse files
committed
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.
1 parent f24ad4c commit 7304e32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mingw/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ogg_SHA := c163bc12bc300c401b6aa35907ac682671ea376f13ae0969a220f7ddf71893fe
1111
opus_URL := https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz
1212
opus_SHA := 65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d
1313

14-
ssl_URL := https://openssl.org/source/openssl-1.1.1g.tar.gz
15-
ssl_SHA := ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
14+
ssl_URL := https://openssl.org/source/openssl-1.0.2u.tar.gz
15+
ssl_SHA := ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
1616

1717
all: $(DEPS)
1818

@@ -78,7 +78,7 @@ opus_BUILD: $(opus_DIR)
7878
$(MAKE) -C $< install
7979

8080
ssl_BUILD: $(ssl_DIR)
81-
cd $< && ./Configure shared mingw no-asm \
81+
cd $< && ./Configure mingw \
8282
--prefix=$(CURDIR) \
8383
--cross-compile-prefix=$(TOOL_PREFIX)-
8484
$(MAKE) -C $< depend
@@ -94,8 +94,8 @@ $(DIST).zip: $(DIST)
9494
zip -r $@ $</*
9595
@echo $@ ready to go.
9696

97-
$(DIST): $(addprefix $(CURDIR)/bin/, libogg-0.dll libopus-0.dll libssl-1_1.dll)
98-
cd .. && make install
97+
$(DIST): $(addprefix $(CURDIR)/bin/, libogg-0.dll libopus-0.dll)
98+
#cd .. && make install
9999
mkdir -p $(DIST)
100100
cp ../AUTHORS ../COPYING ../README.md ../include/opusfile.h $@
101101
cp ../.libs/libopusfile-0.dll $@

0 commit comments

Comments
 (0)