From 2290943ad2b8679efa49cef31ba65af7714b2c99 Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Wed, 5 Mar 2025 16:31:43 -0500 Subject: [PATCH] Don't 'dllexport' Windows symbols on static build (#2238) ### Issues: Addresses aws/aws-lc-rs#715 ### Description of changes: On Windows, avoid marking exported symbols with `__declspec(dllexport)` when performing a static build. ### Call-outs: * This is a partial revert of this PR: https://github.com/aws/aws-lc/pull/466 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. --- include/openssl/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/base.h b/include/openssl/base.h index 4dc2e33d98..f08fa75f44 100644 --- a/include/openssl/base.h +++ b/include/openssl/base.h @@ -147,7 +147,7 @@ extern "C" { #else // defined(BORINGSSL_SHARED_LIBRARY) #if defined(OPENSSL_WINDOWS) -#define OPENSSL_EXPORT __declspec(dllexport) +#define OPENSSL_EXPORT #else #define OPENSSL_EXPORT __attribute__((visibility("default"))) #endif