On Thu, 2017-01-12 at 21:49 +0000, Yuri Gribov wrote: > Note that documentation for -static-libgcc explicitly mentions that > There are several situations in which an application should > use the shared libgcc instead of the static version. The most > common of these is when the application wishes to throw and > catch exceptions across different shared libraries. In that case, > each of the libraries as well as the application itself > should use the shared libgcc. > Removing -static-libgcc fixes problem with your reprocase.
I could have sworn I tried all different combinations of the different static flags, but sure enough if I don't add -static-libgcc on either the .so or the executable things work OK. Thanks!