mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-01-14 02:30:08 +08:00
Revert "remove unsupported build flags on go1.9.4+"
This reverts commit6eae62b008
. This reverts commitbaa1f6250e
. Leaves in the removal of -w from the darwin LDFLAGS as it is still problematic on 1.9.5 and 1.10.1.
This commit is contained in:
parent
baa1f6250e
commit
2df7e68102
3
build.go
3
build.go
@ -17,7 +17,8 @@
|
||||
package openssl
|
||||
|
||||
// #cgo linux windows pkg-config: libssl libcrypto
|
||||
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include
|
||||
// #cgo linux CFLAGS: -Wno-deprecated-declarations
|
||||
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
|
||||
// #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
|
||||
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
|
||||
import "C"
|
||||
|
@ -17,7 +17,8 @@
|
||||
package openssl
|
||||
|
||||
// #cgo linux windows pkg-config: --static libssl libcrypto
|
||||
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include
|
||||
// #cgo linux CFLAGS: -Wno-deprecated-declarations
|
||||
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
|
||||
// #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
|
||||
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
|
||||
import "C"
|
||||
|
Loading…
Reference in New Issue
Block a user