From 3d9510315cff09eeb3b69e4cdb7ed5d756171037 Mon Sep 17 00:00:00 2001 From: midipix Date: Aug 16 2019 07:40:34 +0000 Subject: binutils: enable use of libraries (e.g. perk, mdso) found under ${PREFIX_NATIVE}. Signed-off-by: Lucio Andrés Illanes Albornoz --- diff --git a/vars/build.vars b/vars/build.vars index 3fc07d1..355bee5 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -403,6 +403,8 @@ NATIVE_TOOLCHAIN_PREFIX="${PREFIX_NATIVE}"; : ${PKG_BINUTILS_VERSION:=2.24.51}; : ${PKG_BINUTILS_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_VERSION}.tar.bz2}; : ${PKG_BINUTILS_CONFIGURE_ARGS_EXTRA:="--enable-deterministic-archives --with-libelf=${PREFIX_NATIVE} --with-gmp=${PREFIX_NATIVE} --with-mpc=${PREFIX_NATIVE} --with-mpfr=${PREFIX_NATIVE} --with-sysroot=/"}; +: ${PKG_BINUTILS_CFLAGS_CONFIGURE:="-isystem ${PREFIX_NATIVE}/include -Wno-error=cpp"}; +: ${PKG_BINUTILS_LDFLAGS_CONFIGURE:="-L${PREFIX_NATIVE}/lib"}; : ${PKG_BINUTILS_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/binutils-${PKG_BINUTILS_VERSION}.midipix.patch"}; : ${PKG_BINUTILS_LIBTOOL:=slibtool-static};