Skip to content

Commit

Permalink
wolfSSL: Update to 5.7.2 (#9578)
Browse files Browse the repository at this point in the history
* wolfSSL: Update to 5.7.2

* wolfSSL: Exclude failing platforms

* wolfSSL: Try a fix for macOS

* wolfSSL: Try the fix for macOS

* wolfSSL: Fix Windows build

---------

Co-authored-by: Viral B. Shah <[email protected]>
  • Loading branch information
dantaras and ViralBShah authored Oct 16, 2024
1 parent efa0c57 commit 20fc2b1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
19 changes: 16 additions & 3 deletions W/wolfSSL/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,29 @@
using BinaryBuilder, Pkg

name = "wolfSSL"
version = v"4.8.1"
version = v"5.7.2"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/wolfSSL/wolfssl/archive/refs/tags/v$(version)-stable.tar.gz", "50db45f348f47e00c93dd244c24108220120cb3cc9d01434789229c32937c444")
GitSource("https://github.com/wolfSSL/wolfssl.git", "00e42151ca061463ba6a95adb2290f678cbca472"),
ArchiveSource("https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.14.sdk.tar.xz",
"0f03869f72df8705b832910517b47dd5b79eb4e160512602f593ed243b28715f"),
DirectorySource("./bundled"),
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/wolfssl*
atomic_patch -p1 ../patches/mingw32-link-with-ws2_32.patch
if [[ "${target}" == x86_64-apple-darwin* ]]; then
pushd ${WORKSPACE}/srcdir/MacOSX10.*.sdk
rm -rf /opt/${target}/${target}/sys-root/System
cp -ra usr/* "/opt/${target}/${target}/sys-root/usr/."
cp -ra System "/opt/${target}/${target}/sys-root/."
export MACOSX_DEPLOYMENT_TARGET=10.14
popd
fi
mkdir build && cd build
Expand All @@ -31,7 +44,7 @@ make install

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms(; experimental = true)
platforms = supported_platforms()


# The products that we will ensure are always built
Expand Down
14 changes: 14 additions & 0 deletions W/wolfSSL/bundled/patches/mingw32-link-with-ws2_32.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e6f05fc6..5b1c3cd74 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2385,8 +2385,7 @@ target_link_libraries(wolfssl PUBLIC ${WOLFSSL_LINK_LIBS})

if(WIN32)
# For Windows link ws2_32
- target_link_libraries(wolfssl PUBLIC
- $<$<PLATFORM_ID:Windows>:ws2_32 crypt32>)
+ target_link_libraries(wolfssl PUBLIC ws2_32 crypt32)
elseif(APPLE)
if(WOLFSSL_SYS_CA_CERTS)
target_link_libraries(wolfssl PUBLIC

0 comments on commit 20fc2b1

Please sign in to comment.