Re: [go-nuts] 1.13 does not run init() when cgo is imported

2020-01-21 Thread Ian Lance Taylor
On Tue, Jan 21, 2020 at 5:24 AM Graham Nicholls wrote: > > I have the following code: > > 3 /* > 4 selinux.go - return the sestatus > 5 > 6 > 7 The lines below are preamble to the import of "C" - > 8 they should be left untouched > 9 */ > 10 > 11 // //cgo linux CFLAGS: -Iinc

[go-nuts] 1.13 does not run init() when cgo is imported

2020-01-21 Thread Graham Nicholls
I have the following code: 3 /* 4 selinux.go - return the sestatus 5 6 7 The lines below are preamble to the import of "C" - 8 they should be left untouched 9 */ 10 11 // //cgo linux CFLAGS: -Iinclude -I. 12 // #cgo pkg-config: libselinux 13 // #include 14 // #include