[kde-freebsd] devel/cmake bug: "-pthread; -D_THREAD_SAFE" emitted instead of "-pthread -D_THREAD_SAFE"

René Ladan rene at freebsd.org
Sun Aug 28 10:49:04 UTC 2011

2011/8/28 Raphael Kubo da Costa <rakuco at freebsd.org>:
> Rene Ladan <rene at freebsd.org> writes:
>> somehow devel/cmake outputs "-pthread;-D_THREAD_SAFE" instead of
>> "-pthread -D_THREAD_SAFE" to the generated Makefiles (note the semicolon).
>> This means some list is passed verbatim to the compiler, causing the
>> shell to execute the wrong commands. I have looked into the source code
>> but there seems to be no relevant mention of "-D_THREAD_SAFE", nor in
>> /usr/include or /usr/local/include.
>> A workaround of course is to patch the generated Makefiles, but it would
>> be nicer to fix the real problem (which does not seem to exist on most
>> Linux distributions).
>> I'm using cmake 2.8.1, but it also happens with earlier versions.
>> I don't have a testcase yet, sorry.
> Hey there,
> Do you still experience this one?
No, this has been fixed in cmake (2.8.2 if I remember correctly).


More information about the freebsd-ports mailing list