-static-libstdc++ on OSX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On OSX 10.10.5, running brew-installed gcc 5.3:

> g++ -static-libstdc++ foo.cpp && otool -L a.out
a.out:
    /usr/local/opt/gcc5/lib/gcc/5/libstdc++.6.dylib (compatibility
version 7.0.0, current version 7.21.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)
    /usr/local/lib/gcc/5/libgcc_s.1.dylib (compatibility version
1.0.0, current version 1.0.0)

> g++ -static-libstdc++ -static-libgcc foo.cpp && otool -L a.out
a.out:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)

It seems that -static-libstdc++ alone has no effect. Having read some
older messages on this list, I believe this is a known limitation that
cannot easily be changed - is that still accurate?

Dave



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux