Re: [go-nuts] Option -Wl,--whole-archive seems not work

2020-10-17 Thread Ian Lance Taylor
On Sat, Oct 17, 2020 at 12:25 PM Thierry Fournier wrote: > > I need to build go with an archive file which requires to be linked with the > option "-Wl,--whole-archive" on linux or "-Wl,-all_load" on macos. > > My go file contains this code: > > /* > > #cgo darwin LDFLAGS: -L.. -Wl,-all_load -lmy

[go-nuts] Option -Wl,--whole-archive seems not work

2020-10-17 Thread Thierry Fournier
Hi, I need to build go with an archive file which requires to be linked with the option "-Wl,--whole-archive" on linux or "-Wl,-all_load" on macos. My go file contains this code: /* *#cgo darwin LDFLAGS: -L.. -Wl,-all_load -lmy_lib* #cgo linux LDFLAGS: -L.. -Wl,--whole-archive -lmy_lib */ i

[go-nuts] Re: Unable to create a specific file in windows

2020-10-17 Thread Carlos Alberto Costa Beppler
The problem is that on Windows API, to keep combability with previous versions, the maximum length for a full file name is 255 (may be a little less). The a directory is being created relative to C:\Users\nil\Downloads\sanitize\temp, so the full file name is C:\Users\nil\Downloads\sanitize\tem