In article <[email protected]>, "[email protected]" <[email protected]> wrote:
> Compiling the standard Hello World with > > g++ -static-libgcc hello.cpp > > Results in a binary that's linked dynamically to libstdc++.6.dylib. > > I want that library linked statically, so I tried the insanely geeky > Linux-inspired workaround: > > http://www.trilithium.com/johan/2005/06/static-libstdc/ > > $ a=`g++ -print-file-name=libstdc++.a` > $ d=`dirname $a` > $ g++ -static-libgcc -L${d} hello.cpp > $ otool -L a.out > > This shows a.out still linked dynamically to libstdc++.6.dylib > > Any tips? Is this a bug? I know that Xcode has its own solution, but I > don't use Xcode. Possibly this: <http://lists.apple.com/archives/Unix-porting/2006/Aug/msg00012.html> -- I saw a truck today that had "AAA Batteries / Delivered and Installed" on the side. My first thought was: That's a really weird business model. How many inept people have urgent need of skinny little battery cells? _______________________________________________ help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
