Statically link libgcc and libstdc++ into gold
Pavel Chupin [Fri, 28 Dec 2012 17:21:35 +0000 (21:21 +0400)]
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>

Makefile.in

index 68f0f06..605574f 100644 (file)
@@ -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