[cfe-dev] clang patches for OpenBSD

Chris Lattner clattner at apple.com
Mon Feb 21 10:41:31 PST 2011

On Feb 18, 2011, at 12:02 PM, Matthew Dempsky wrote:

>> I don't understand the issue here, but this has the same problem.
>> We need this conditionalized to only apply to OpenBSD.  I'm not
>> familiar with the driver, so I don't know what the best way to go for
>> that is. 
> The issue is that when the "clang" driver is invoked using the
> -pthread option, it needs to pass -lpthread to ld.  E.g., the freebsd
> link job construction code already correctly does this, but the
> openbsd implementation erroneously passes -pthread instead, which
> causes a link error because ld doesn't understand this option.
> Thanks!
> (I don't have anything useful to add about the -lgcc arguments though;
> they do seem redundant, but it's consistent with gcc's behavior so I'd
> suggest leaving it.)

Ok, sounds great!  Applied in r126133, thanks!


More information about the cfe-dev mailing list