http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47852
Summary: crash with g++ -lpthread on irix Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassig...@gcc.gnu.org ReportedBy: bugzilla-...@thewrittenword.com CC: r...@cebitec.uni-bielefeld.de Host: mips-sgi-irix6.5 Target: mips-sgi-irix6.5 Build: mips-sgi-irix6.5 gcc-4.4.5 on IRIX 6.5 produces an executable that crashes at runtime if -lpthread appears before -lstdc++ on the link line. % echo 'int main() {}' >a.cpp % g++ a.cpp -lpthread -pthread; ./a.out; echo $? zsh: segmentation fault (core dumped) ./a.out 139 See also the discussion here: http://gcc.gnu.org/ml/gcc-help/2011-02/msg00335.html http://gcc.gnu.org/ml/gcc-help/2011-02/msg00368.html