Skip to content

Commit

Permalink
Don't 'dllexport' Windows symbols on static build (#2238)
Browse files Browse the repository at this point in the history
### 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:
#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.
  • Loading branch information
justsmth authored Mar 5, 2025
1 parent 1d8b807 commit 2290943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/openssl/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2290943

Please sign in to comment.