summaryrefslogtreecommitdiff
path: root/package/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 10:33:51 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 10:34:00 +0200
commit31bdc569aece7ae813caeaadada207e25ccda789 (patch)
treeefa9b1f4b95eba14234d525f31f3721b8eea7eea /package/binutils
parent71cafe792c3fd9e374e2c415699c9bce8d7e25a3 (diff)
bfin: fix some issues so that it can be used to do some basic testing with embedded-test
Diffstat (limited to 'package/binutils')
-rw-r--r--package/binutils/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index e7b2f965b..89c5a36ee 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -22,6 +22,11 @@ include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBBFD,libbfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBFD},${PKGSD_LIBBFD},${PKGSC_LIBBFD},${PKG_OPTS}))
+ifeq ($(ADK_TARGET_ARCH_BFIN),y)
+TARGET_CFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS))
+endif
+
TARGET_CFLAGS+= -fPIC
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO=missing