* Vendors packages * Adds a Makefile that uses docker to build a static binary against musl using alpine linux. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
12 lines
467 B
Go
12 lines
467 B
Go
//go:build linux && cgo
|
|
|
|
package shared
|
|
|
|
// #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
|
|
// #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
|
|
// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
|
|
// #cgo CFLAGS: -Werror=implicit-function-declaration
|
|
// #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
|
|
// #cgo CFLAGS: -Wnested-externs -fexceptions
|
|
// #cgo LDFLAGS: -lutil -lpthread
|
|
import "C"
|