Skip to content

Commit

Permalink
Fix build with openssl 1.0.2d
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rfjakob committed Nov 29, 2015
1 parent 4d3c3b1 commit a262611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a262611

Please sign in to comment.