Richard Lowe
2021-08-17 191f9f42110cdaa8aacd7bdf12ad3f624334eaff
gcc: strip the DWARF (but not symbol tables) from the resulting binaries
1 files modified
5 ■■■■■ changed files
make-rules/gcc-component.mk 5 ●●●●● patch | view | raw | blame | history
make-rules/gcc-component.mk
@@ -101,6 +101,8 @@
COMMON_ENV=  LD_OPTIONS="-zignore -zcombreloc -i"
COMMON_ENV+= LD_FOR_TARGET=/usr/bin/ld
COMMON_ENV+= LD_FOR_HOST=/usr/bin/ld
COMMON_ENV+= STRIP="/usr/bin/strip -x"
COMMON_ENV+= STRIP_FOR_TARGET="/usr/bin/strip -x"
COMMON_ENV+= LD=/usr/bin/ld
CONFIGURE_ENV+= $(COMMON_ENV)
@@ -133,6 +135,9 @@
# Set path to library install prefix
CONFIGURE_OPTIONS+= LDFLAGS="-R$(CONFIGURE_PREFIX)/lib"
# Strip the resulting binaries
COMPONENT_INSTALL_TARGETS = install-strip
COMPONENT_POST_INSTALL_ACTION = \
  $(RM) -r $(PROTO_DIR)$(CONFIGURE_PREFIX)/lib/gcc/$(GNU_TRIPLET)/$(COMPONENT_VERSION)/include-fixed