diff options
-rw-r--r-- | core/toolchain/binutils/binutils.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/toolchain/binutils/binutils.mk b/core/toolchain/binutils/binutils.mk index 1f85bd7..1d6e4a5 100644 --- a/core/toolchain/binutils/binutils.mk +++ b/core/toolchain/binutils/binutils.mk @@ -42,15 +42,16 @@ BINUTILS_PREFIX := $(embtk_tools) define embtk_beforeinstall_binutils $(if $(CONFIG_EMBTK_CLIB_MUSL),$(call __embtk_fixgconfigsfor_pkg,binutils)) - $(if $(findstring freebsd,$(embtk_buildhost_os)), + $(if $(findstring bsd,$(embtk_buildhost_os_type)), bfdmk=$(call __embtk_pkg_srcdir,binutils)/bfd/Makefile.in; \ goldmk=$(call __embtk_pkg_srcdir,binutils)/gold/Makefile.in; \ sed -e 's/-ldl//g' < $$bfdmk > $$bfdmk.tmp; \ mv $$bfdmk.tmp $$bfdmk; \ sed -e 's/-ldl//g' < $$goldmk > $$goldmk.tmp; \ mv $$goldmk.tmp $$goldmk;) - bfdtxi=$(call __embtk_pkg_srcdir,binutils)/bfd/doc/bfd.texinfo; \ - sed -e 's/@colophon/@@colophon/' -e 's/doc@cygnus.com/doc@@cygnus.com/' \ + bfdtxi=$(call __embtk_pkg_srcdir,binutils)/bfd/doc/bfd.texinfo; \ + sed -e 's/[[:space:]]@colophon/ @@colophon/' \ + -e 's/doc@cygnus.com/doc@@cygnus.com/' \ < $$bfdtxi > $$bfdtxi.tmp; mv $$bfdtxi.tmp $$bfdtxi endef |