diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-08-15 15:03:26 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-08-15 15:03:26 +0200 |
commit | 58b6ddac1c5ded14981cacec815b9e830f8bc9fb (patch) | |
tree | 6af0d04629f8199730b717d37118c5d2276448ad | |
parent | e62e904fc9ab6d2cee4aba672a64f3965f9b8a1b (diff) | |
download | embtoolkit-58b6ddac1c5ded14981cacec815b9e830f8bc9fb.tar.gz embtoolkit-58b6ddac1c5ded14981cacec815b9e830f8bc9fb.tar.bz2 embtoolkit-58b6ddac1c5ded14981cacec815b9e830f8bc9fb.tar.xz |
Toolchain: binutils: fix build on bsd systems
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-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 |