https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97865

--- Comment #9 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Iain Sandoe from comment #8)
> (In reply to Jürgen Reuter from comment #4)

> 
> It's OK to need it (there are legitimate design reasons to do so) - however
> where that need exists, the -Wl,-undefined,dynamic_lookup should be applied
> to the specific configuration (with eyes open as to why, of course).
> 
> Placing it in the libtool.m4 (and regenerating the configurations) applies
> it globally to everything in the GCC tree which isn't right.

Yes, I understand. Our code finally links dynamically:

        /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
        /usr/local/lib/libgfortran.5.dylib (compatibility version 6.0.0,
current version 6.0.0)
        /usr/local/lib/libquadmath.0.dylib (compatibility version 1.0.0,
current version 1.0.0)/usr/local/lib/libstdc++.6.dylib (compatibility version
7.0.0, current version 7.29.0)

So, I guess at least one of those libraries has to be built with the
-dynamic_lookup in order to work properly. I would guess it is libgfortran, but
maybe not only.

Reply via email to