1
0
mirror of https://github.com/libp2p/go-openssl.git synced 2025-03-25 13:30:07 +08:00

Fix build with openssl 1.0.2d

On Fedora 23, the build fails like this:

	go build
	# github.com/spacemonkeygo/openssl
	/usr/bin/ld: $WORK/github.com/spacemonkeygo/openssl/_obj/cert.cgo2.o: undefined reference to symbol 'EVP_dss1@@libcrypto.so.10'
	/usr/lib64/libcrypto.so.10: error adding symbols: DSO missing from command line
	collect2: error: ld returned 1 exit status

Adding "libcrypto" to the linker flags fixes the issue.
This commit is contained in:
Jakob Unterwurzacher 2015-11-29 18:42:51 +01:00
parent 4d3c3b16ef
commit a262611e6f

View File

@ -16,7 +16,7 @@
package openssl
// #cgo pkg-config: libssl
// #cgo pkg-config: libssl libcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
// #cgo darwin CFLAGS: -Wno-deprecated-declarations
import "C"