[OpenWrt-Devel] [PATCH] libevent2: Add -Wl, --gc-sections to reduce size a little.
ynezz at true.cz
Wed Feb 20 01:19:43 EST 2019
Rosen Penev <rosenp at gmail.com> [2019-02-19 13:01:57]:
> -TARGET_CFLAGS += $(FPIC)
Why did you removed this? I can see, that you've added --with-pic configure
option, but I'm wondering if it's going to provide same result on all
> +TARGET_LDFLAGS += -Wl,--gc-sections
I'm not sure whether this is a good idea on library, or is it?
> + --disable-libevent-regress \
I'm wondering how this might reduce the binary size. It might be enabled by
default for some reason, so I'm not sure if disabling regression tests for
saving some build time (BTW how much?) is a good idea.
You've forget to add on which platforms you've build and run tested this
change, and mainly on which platform you're seeing this 4KB size reduction.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel