summaryrefslogtreecommitdiff
path: root/package/binutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/binutils/Makefile')
-rw-r--r--package/binutils/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index 96c6a4f67..9bd18ce93 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -21,9 +21,13 @@ $(eval $(call PKG_template,LIBBFD,libbfd,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
TARGET_CFLAGS+= -fPIC
+ifeq ($(ADK_NATIVE),)
CONFIGURE_ARGS+= --disable-werror \
--host=$(REAL_GNU_TARGET_NAME) \
--target=$(REAL_GNU_TARGET_NAME)
+else
+CONFIGURE_ARGS+= --disable-werror
+endif
pre-build:
@-rm $(STAGING_TARGET_DIR)/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a