[LLVMbugs] [Bug 7798] New: -pthread option not supported when linking with clang++...

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 3 08:46:17 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7798

           Summary: -pthread option not supported when linking with
                    clang++...
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Fons.Rademakers at cern.ch
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Hi,

  when linking:

clang++ -O2 -m64 stress.o Event.o EventDict.o -L/Users/rdm/rooticc/lib -lCore
-lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript
-lMatrix -lPhysics -lMathCore -lThread -pthread
-Wl,-rpath,/Users/rdm/rooticc/lib -lm -ldl  -o stress

I get the warning:

clang: warning: argument unused during compilation: '-pthread'

while with g++ this option is needed (adds -lpthread on non Mac systems) or at
least does not complain.

Cheers, Fons.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list