incus-mirror/internal/linux/cgo.go
Stéphane Graber f910c5c532
internal/linux: Move cgo.go
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-09-08 10:36:01 -04:00

13 lines
466 B
Go

//go:build linux && cgo
package linux
// #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"