diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-09-27 19:58:18 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-09-27 19:58:50 +0300 |
commit | 418a6280cb06d9f34f552936bfd03d2d0db43b33 (patch) | |
tree | 908b8cf4f93b481ac332f197511c5e0c8745afa1 | |
parent | 9958e830c8d2de758726a60210eb5e6a92face6a (diff) | |
download | gcc-5-418a6280cb06d9f34f552936bfd03d2d0db43b33.tar.gz |
Use shared libgcc for unwind functions
-rw-r--r-- | debian/rules2 | 5 |
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 |