summaryrefslogtreecommitdiffstats
path: root/toolchain/toolchain-external/ext-toolchain-wrapper.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-12-31 12:09:33 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-03-01 20:26:37 +0100
commitb95e436ee0c9e4638dc79766da0d17927c6641ce (patch)
tree0ad278d70c3d9b1d7c0c6eab6cab749dbf78080c /toolchain/toolchain-external/ext-toolchain-wrapper.c
parent50ac5f9a573d3918cc5257a30a7c85db7841ac42 (diff)
downloadbuildroot-novena-b95e436ee0c9e4638dc79766da0d17927c6641ce.tar.gz
buildroot-novena-b95e436ee0c9e4638dc79766da0d17927c6641ce.zip
Expand external toolchain wrapper to custom flags
The BR2_TARGET_OPTIMIZATION flags were not used by the external toolchain wrapper, which broke the multilib selection logic of multilib external toolchains. It also simplifies the compilation of external programs since all flags are properly passed automatically by the toolchain wrapper. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'toolchain/toolchain-external/ext-toolchain-wrapper.c')
-rw-r--r--toolchain/toolchain-external/ext-toolchain-wrapper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c
index cc404f3e9..719f13bd1 100644
--- a/toolchain/toolchain-external/ext-toolchain-wrapper.c
+++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c
@@ -40,6 +40,9 @@ static char *predef_args[] = {
#ifdef BR_VFPFLOAT
"-mfpu=vfp",
#endif /* BR_VFPFLOAT */
+#ifdef BR_ADDITIONAL_CFLAGS
+ BR_ADDITIONAL_CFLAGS
+#endif
};
static const char *get_basename(const char *name)