support and describe building static binaries
This commit is contained in:
24
cgo_static.go
Normal file
24
cgo_static.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package xmlsec
|
||||
|
||||
// +build static
|
||||
|
||||
// #cgo linux CFLAGS: -w
|
||||
// #cgo darwin CFLAGS: -Wno-invalid-pp-token -Wno-header-guard
|
||||
// #cgo pkg-config: --static 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: --static libxml-2.0
|
||||
// #include <libxml/parser.h>
|
||||
// #include <libxml/parserInternals.h>
|
||||
// #include <libxml/xmlmemory.h>
|
||||
// #include <xmlsec/xmlsec.h>
|
||||
// #include <xmlsec/xmltree.h>
|
||||
// #include <xmlsec/xmlenc.h>
|
||||
// #include <xmlsec/templates.h>
|
||||
// #include <xmlsec/crypto.h>
|
||||
import "C"
|
||||
Reference in New Issue
Block a user