support and describe building static binaries

This commit is contained in:
Ross Kinder
2016-09-03 19:31:03 -04:00
parent 176078f607
commit db09fcec31
9 changed files with 199 additions and 9 deletions

19
cgo_dl.go Normal file
View File

@@ -0,0 +1,19 @@
package xmlsec
// +build !static
// #cgo linux CFLAGS: -w
// #cgo darwin CFLAGS: -Wno-invalid-pp-token -Wno-header-guard
// #cgo pkg-config: xmlsec1
// #include <xmlsec/xmlsec.h>
// #include <xmlsec/xmltree.h>
// #include <xmlsec/xmlenc.h>
// #include <xmlsec/templates.h>
// #include <xmlsec/crypto.h>
import "C"
// #cgo pkg-config: libxml-2.0
// #include <libxml/parser.h>
// #include <libxml/parserInternals.h>
// #include <libxml/xmlmemory.h>
import "C"