views:

571

answers:

1

Is it possible to statically link my program with libpthreads and libstdc++ on Linux?

+3  A: 

Yes, with -static as per normal.

womble
I want to create an .so statically linked with the libraries above. -static causes .a to be produced.
Then why didn't you ask for that originally?
womble
Haven't seem relevant till I've tried -static