summaryrefslogtreecommitdiff
path: root/package/binutils/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-08-01 13:26:42 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-08-01 13:26:42 +0200
commit32d4f19aa5f05255c3d609048e1bf6ac4ffbfef4 (patch)
treea92c3310cd85ac00ed20e1ecac5dc4fdc5243fda /package/binutils/Makefile
parent38e356a749191c1832c9726b0b6cb913737af700 (diff)
parenta3e0d02b1c8b618fdfc0454560f75e678e0d68c0 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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