summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/rules25
1 files changed, 5 insertions, 0 deletions
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