Skip to content

Commit 3b50388

Browse files
wajRX14
authored andcommittedJan 18, 2018
OpenSSL: Hide errors when either libcrypto or libssl are not found by pkg-config (#5603)
1 parent f3168b6 commit 3b50388

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎src/openssl/lib_crypto.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
end
66
{% end %}
77

8-
@[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'`")]
8+
@[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'`")]
99
lib LibCrypto
1010
alias Char = LibC::Char
1111
alias Int = LibC::Int

Diff for: ‎src/openssl/lib_ssl.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require "./lib_crypto"
77
end
88
{% end %}
99

10-
@[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'`")]
10+
@[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'`")]
1111
lib LibSSL
1212
alias Int = LibC::Int
1313
alias Char = LibC::Char

0 commit comments

Comments
 (0)
Please sign in to comment.