11From 0c18bd91955f6ad48582c01901ffadd4ad5a149c Mon Sep 17 00:00:00 2001
22From: BiteTheDDDDt <xl@selectdb.com>
33Date: Tue, 15 Jul 2025 12:57:25 +0800
4- Subject: [PATCH] resolve missing uint8_t define
4+ Subject: [PATCH 1/2 ] resolve missing uint8_t define
55
66---
77 .../azure-security-attestation/src/private/crypto/inc/crypto.hpp | 1 +
@@ -13,12 +13,39 @@ index 9a98f204..8f338436 100644
1313+++ b/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp
1414@@ -2,6 +2,7 @@
1515 // Licensed under the MIT License.
16-
16+
1717 #pragma once
1818+ #include <cstdint>
1919 #include <ctime>
2020 #include <memory>
2121 #include <string>
22- - -
22+ - -
23232.43.5
2424
25+ From 0c18bd91955f6ad48582c01901ffadd4ad5a149d Mon Sep 17 00:00:00 2001
26+ From: Claude <noreply@anthropic.com>
27+ Date: Wed, 29 Jan 2026 16:00:00 +0800
28+ Subject: [PATCH 2/2] fix clang link error: always link libdl for openssl
29+
30+ libcrypto.a requires dlopen/dlsym/dlclose/dlerror from libdl.
31+ With clang, find_library may not find libdl, but -ldl is still needed.
32+ ---
33+ vcpkg-custom-ports/openssl/vcpkg-cmake-wrapper.cmake.in | 3 ++-
34+ 1 file changed, 2 insertions(+), 1 deletion(-)
35+
36+ diff --git a/vcpkg-custom-ports/openssl/vcpkg-cmake-wrapper.cmake.in b/vcpkg-custom-ports/openssl/vcpkg-cmake-wrapper.cmake.in
37+ index 1234567..abcdefg 100644
38+ --- a/vcpkg-custom-ports/openssl/vcpkg-cmake-wrapper.cmake.in
39+ +++ b/vcpkg-custom-ports/openssl/vcpkg-cmake-wrapper.cmake.in
40+ @@ -53,7 +53,8 @@ if(OPENSSL_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
41+ set_property(TARGET OpenSSL::SSL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "crypt32;ws2_32")
42+ endif()
43+ else()
44+ - find_library(OPENSSL_DL_LIBRARY NAMES dl)
45+ + # Always link dl for clang compatibility
46+ + set(OPENSSL_DL_LIBRARY "dl")
47+ if(OPENSSL_DL_LIBRARY)
48+ list(APPEND OPENSSL_LIBRARIES "dl")
49+ if(TARGET OpenSSL::Crypto)
50+ - -
51+ 2.43.5
0 commit comments