summaryrefslogtreecommitdiff
path: root/toolchain/binutils/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-07-06 13:37:38 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-07-06 17:06:50 +0200
commitb75624a495e9163de469597555e9a70406b1f7a6 (patch)
tree408dca3ea5739d60cc0bdbf6cf82bba4e148b169 /toolchain/binutils/Makefile
parentc2a0e85308760ba02ca8e5b222b5534ca018aa73 (diff)
allow static building of toolchain
Diffstat (limited to 'toolchain/binutils/Makefile')
-rw-r--r--toolchain/binutils/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index b6d4489f9..9dae9defa 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -38,6 +38,10 @@ ifeq (${ADK_MAKE_PARALLEL},y)
BINUTILS_MAKEOPTS+= -j${ADK_MAKE_JOBS}
endif
+ifeq (${ADK_STATIC_TOOLCHAIN},y)
+BINUTILS_STATIC_MAKEOPTS+=LDFLAGS='$(HOST_STATIC_LLDFLAGS)'
+endif
+
$(WRKBUILD)/.headers:
$(WRKBUILD)/.configured:
ifeq ($(ADK_LINUX_XTENSA),y)
@@ -56,10 +60,11 @@ endif
--disable-install-libiberty \
${CONFOPTS} \
);
+ $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) configure-host
touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
- $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) all
+ $(MAKE) ${BINUTILS_MAKEOPTS} ${BINUTILS_STATIC_MAKEOPTS} -C $(WRKBUILD) all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled