Re: [go-nuts] How to build an object file for a specific GOOS and GOARCH with external linker?

2020-08-17 Thread Ian Lance Taylor
On Sun, Aug 16, 2020 at 12:53 AM rotusm...@gmail.com wrote: > > i took your suggestions, tried the '-work' option it showed me the temporary > directory where the build files are stored, but they didn't contain the > object file. After exploring that a little, i found out out that the 'go >

Re: [go-nuts] How to build an object file for a specific GOOS and GOARCH with external linker?

2020-08-16 Thread rotusm...@gmail.com
i took your suggestions, tried the '-work' option it showed me the temporary directory where the build files are stored, but they didn't contain the object file. After exploring that a little, i found out out that the 'go build' command also makes a temporary link directory with the build

Re: [go-nuts] How to build an object file for a specific GOOS and GOARCH with external linker?

2020-08-14 Thread Ian Lance Taylor
On Fri, Aug 14, 2020 at 8:29 AM wrote: > > i'm trying to create an object file by using "go build" for GOOS=linux > GOARCH=386. > My current go environment has GOOS=linux GOARCH=amd64. > > i know that go build directly builds and links the files, but i want to link > files using an external

[go-nuts] How to build an object file for a specific GOOS and GOARCH with external linker?

2020-08-14 Thread rotusmailbox
i'm trying to create an object file by using "go build" for GOOS=linux GOARCH=386. My current go environment has GOOS=linux GOARCH=amd64. i know that go build directly builds and links the files, but i want to link files using an external linker file, so i need only the object file to be