v.builder: fix linker flags for systems with Procursus (#13865)
parent
cc637e5ee8
commit
3e69d3813b
|
@ -23,6 +23,9 @@ $if $pkgconfig('openssl') {
|
|||
// Brew arm64
|
||||
#flag darwin -I /opt/homebrew/opt/openssl/include
|
||||
#flag darwin -L /opt/homebrew/opt/openssl/lib
|
||||
// Procursus
|
||||
#flag darwin -I/opt/procursus/include
|
||||
#flag darwin -L/opt/procursus/lib
|
||||
//
|
||||
#include <openssl/rand.h> # Please install OpenSSL development headers
|
||||
#include <openssl/ssl.h>
|
||||
|
|
|
@ -203,6 +203,9 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
|
|||
if v.pref.os == .ios {
|
||||
ccoptions.args << '-fobjc-arc'
|
||||
}
|
||||
if v.pref.os == .macos && os.exists('/opt/procursus') {
|
||||
ccoptions.linker_flags << '-Wl,-rpath,/opt/procursus/lib'
|
||||
}
|
||||
ccoptions.debug_mode = v.pref.is_debug
|
||||
ccoptions.guessed_compiler = v.pref.ccompiler
|
||||
if ccoptions.guessed_compiler == 'cc' && v.pref.is_prod {
|
||||
|
|
Loading…
Reference in New Issue