Skip to content

Commit

Permalink
lang/dotnet: Correctly link to base OpenSSL
Browse files Browse the repository at this point in the history
No revision is bumped because this change does not completely fix
the dependency on ports OpenSSL which crept in recent updates.
  • Loading branch information
arrowd committed Feb 20, 2025
1 parent c33c088 commit 8b4f0f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/dotnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ PLIST_SUB= DOTNET_ARCH=${DOTNET_ARCH} FULL_DOTNETVERSION=${PORTVERSION} \

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} == base
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-base-openssl
.endif

.if ${ARCH} == amd64
PLIST_SUB+= VXSORT=
.else
Expand Down
12 changes: 12 additions & 0 deletions lang/dotnet/files/extra-patch-base-openssl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- src/runtime/src/native/libs/System.Security.Cryptography.Native/CMakeLists.txt.orig 2025-01-21 19:57:31 UTC
+++ src/runtime/src/native/libs/System.Security.Cryptography.Native/CMakeLists.txt
@@ -11,6 +11,9 @@ add_definitions(-DOPENSSL_API_COMPAT=0x10100000L)

add_definitions(-DOPENSSL_API_COMPAT=0x10100000L)

+if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
+ set(OPENSSL_ROOT_DIR /usr)
+endif()
include(${CMAKE_CURRENT_LIST_DIR}/extra_libs.cmake)

set(NATIVE_LIBS_EXTRA)

0 comments on commit 8b4f0f9

Please sign in to comment.