summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-07-28 21:24:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-07-28 21:24:48 +0200
commit545d073033cbd01c6b3230d9d95ca298cc8a4857 (patch)
tree7adad55756ef3026fcf0137d835b282e33b0e25a
parente7d2b2e7548e2a618321c3530f8a7b7c300300e1 (diff)
allow native compile
-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