Skip to content

Commit

Permalink
dub.sdl: Add an ae:openssl/lib-1.0 subconfiguration
Browse files Browse the repository at this point in the history
This allows using ae:openssl on systems where /usr/lib/libssl.so is
1.1 or newer.

To do so, run e.g.: dub build --override-config=ae:openssl/lib-1.0

At some point, this configuration will become the default.

This commit would also have added configurations to select the openssl
D library version, if not for a failure in Dub's design which
prohibits doing so: dlang/dub#1706
  • Loading branch information
CyberShadow committed Jul 25, 2020
1 parent 4a70a48 commit 48ac8ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ subPackage {
dependency "openssl" version="~>1.1"
sourceFiles \
"net/ssl/openssl.d"
libs "ssl" "crypto" platform="posix"
configuration "lib-current" {
libs "ssl" "crypto" platform="posix"
}
configuration "lib-1.0" {
libs ":libssl.so.1.0.0" ":libcrypto.so.1.0.0" platform="posix"
}
libs "ssl" "eay" platform="windows-x86"
libs "ssleay32" "libeay32" platform="windows-x86_64"
}
Expand Down

0 comments on commit 48ac8ae

Please sign in to comment.