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

2020-01-21 Thread Graham Nicholls
Mea Culpa. I was building using a script; to get a solaris build I had disabled cgo. Sorry to have wasted your time, and thanks for the responses - I would have updated sooner, but it as a new poster, it didn't appear immediately. On Tuesday, 21 January 2020 13:24:27 UTC, Graham Nic

[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