novox/hq issue 161. A repeated flag is not a merged one. The Go command takes the last -ldflags and drops the first, so passing the toolchain's flags and then the system stamp as a second one produced a binary that knew its system and had lost -s -w: 12.2MB against 8.5MB, with its debug info intact.
My own comment in the previous change said the linker "accepts and merges" them. It does not, and I found out by reading the file the build produced rather than by reading the comment again.
Linker flags are now the toolchain's own list, composed into one flag with the stamp. A test refuses a compile line that carries -ldflags itself, because that is what makes two.
make check: only the pre-existing failure.
novox/hq issue 161. **A repeated flag is not a merged one.** The Go command takes the last `-ldflags` and drops the first, so passing the toolchain's flags and then the system stamp as a second one produced a binary that knew its system and had lost `-s -w`: 12.2MB against 8.5MB, with its debug info intact.
My own comment in the previous change said the linker "accepts and merges" them. It does not, and I found out by reading the file the build produced rather than by reading the comment again.
Linker flags are now the toolchain's own list, composed into one flag with the stamp. A test refuses a compile line that carries `-ldflags` itself, because that is what makes two.
`make check`: only the pre-existing failure.
novox/hq 04-ISSUES/161. A repeated flag is not a merged one. The Go
command takes the last -ldflags and drops the first, so passing the
toolchain's flags and then the system stamp as a second one produced a
binary that knew its system and had lost -s -w: 12.2MB against 8.5MB,
with its debug info intact.
My own comment said the linker "accepts and merges" them. It does not,
and I found out by reading the file the build produced rather than by
reading the comment again.
Linker flags are now the toolchain's own list, composed into one flag with
the stamp. A test refuses a compile line that carries -ldflags itself,
because that is what makes two.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
novox/hq issue 161. A repeated flag is not a merged one. The Go command takes the last
-ldflagsand drops the first, so passing the toolchain's flags and then the system stamp as a second one produced a binary that knew its system and had lost-s -w: 12.2MB against 8.5MB, with its debug info intact.My own comment in the previous change said the linker "accepts and merges" them. It does not, and I found out by reading the file the build produced rather than by reading the comment again.
Linker flags are now the toolchain's own list, composed into one flag with the stamp. A test refuses a compile line that carries
-ldflagsitself, because that is what makes two.make check: only the pre-existing failure.