From 418a6280cb06d9f34f552936bfd03d2d0db43b33 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 27 Sep 2015 19:58:18 +0300 Subject: Use shared libgcc for unwind functions --- debian/rules2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules2 b/debian/rules2 index b540988..6ab0181 100644 --- a/debian/rules2 +++ b/debian/rules2 @@ -225,11 +225,16 @@ else --enable-shared \ --enable-linker-build-id \ +# we need libgcc shared since we use unwind functions from it, +# not from libc, default is -static-libstdc++ and -static-libgcc. +# We are lucky that we can use host libgcc, better way +# could be hackery with LD_LIBRARY_PATH. ifeq (illumos,$(DEB_TARGET_ARCH_OS)) CONFARGS += \ --enable-tls \ --enable-threads=posix \ --enable-libmudflap \ + --with-boot-ldflags=-static-libstdc++ \ --with-gnu-as \ --with-gnu-ld endif -- cgit v1.2.3