On 2017-09-27 19:41, Stijn Tintel wrote: > On 27-09-17 10:31, Felix Fietkau wrote: >> On 2017-09-26 17:10, Stijn Tintel wrote: >>> On 25-09-17 20:18, Felix Fietkau wrote: >>>> On 2017-09-25 15:36, Stijn Tintel wrote: >>>>> Since version 8.0, gdbserver seems to have a hard dependency on >>>>> libstdc++, even with --disable-libstdcxx. >>>> I think it's worth adding -static-libstdc++ to LDFLAGS. With a bit of >>>> luck, gdbserver does not need much of libstdc++. >>> That seems to work. Sizes on x86/64: >>> gdbserver 151K >>> libstdcpp 335K >>> >>> With TARGET_LDFLAGS+=-static-libstdc++: >>> gdbserver 320K >> Please add -Wl,--gc-sections as well. It seems to bring the package size >> down to 146K on MIPS. > Have this queued in my staging tree. I'll push it when the buildbot is > upgraded: https://git.lede-project.org/9eb0ccfe > > Size of gdbserver on x86/64: 171K Looks good to me.
- Felix _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev