blob: 63c7a3ec221cc1ac52f380efdffcb378396b4c1a [file] [log] [blame]
// +build linux,gccgo
package nsenter
#cgo CFLAGS: -Wall
extern void nsexec();
void __attribute__((constructor)) init(void) {
import "C"
// AlwaysFalse is here to stay false
// (and be exported so the compiler doesn't optimize out its reference)
var AlwaysFalse bool
func init() {
if AlwaysFalse {
// by referencing this C init() in a noop test, it will ensure the compiler
// links in the C function.