aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Chupin <pavel.v.chupin@intel.com>2012-12-28 21:21:35 +0400
committerPavel Chupin <pavel.v.chupin@intel.com>2012-12-28 21:31:04 +0400
commitff90ad8552285bacc0569276dc7aa2a623d2cb95 (patch)
tree6aac738ad20d70fdc7da2042bb2b3c30199dc1cc
parent53dbbd577342ce544326d976f6be6c51b77c4a0e (diff)
downloadbuild-ff90ad8552285bacc0569276dc7aa2a623d2cb95.tar.gz
Statically link libgcc and libstdc++ into gold
gold built with newer mingw requires libgcc_sjlj_1.dll and libstdc++-6.dll on runtime. Adding flags to link them statically. Change-Id: Ic0d8143434164c6519c9e4b185a54cec3b8e72d6 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
-rw-r--r--Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 68f0f06..605574f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -292,7 +292,8 @@ BINUTILS_CONFIG_ARGS+= --with-cloog=${CLOOG_DIR} --with-gmp=${GMP_DIR} \
ifneq ($(host_os),darwin)
BINUTILS_CONFIG_ARGS+= \
'--with-host-libstdcxx=-static-libgcc \
- -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
+ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
+ --with-gold-ldflags='-static-libgcc -static-libstdc++'
else
# In darwin ld doesn't allow both -static and -dynamic. Instead, we rely on explicit
# "-isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)" to establish