gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FreeBSD - no luck with libobjc2


From: Wolfgang Lux
Subject: Re: FreeBSD - no luck with libobjc2
Date: Mon, 13 Apr 2020 17:01:50 +0200


> Am 13.04.2020 um 13:56 schrieb Riccardo Mottola <address@hidden>:
> 
> So now? Is this not the correct way to change cmake parameters?

I've never used ccmake, but I'm using cmake directly in the way suggested in 
the INSTALL file:
  cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ 
-DCMAKE_BUILD_TYPE=RelWithDebInfo ..
and then I don't try to touch the cmake configuration in any way. 
Presumably you can even omit the -DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER 
options on FreeBSD because there should be no gcc (unless you've installed it 
yourself or it got installed by some package you are using). But then both 
shouldn't hurt either. The -DCMAKE_BUILD_TYPE option is only for getting 
debugging symbols for libobjc2 (and to prevent Class from being an abstract 
type, which makes debugging even more of a pain than it is already due to gdb 
and lldb not being aware of the instance variables offsets). 
That said, I would recommend nuking your old build directory and starting from 
scratch before calling cmake because it seems to update the existing 
configuration. So if that is already broken in some way, you'll still end up 
with a configuration that's most likely broken again.

> I think this is quite a mess.

Well, cmake is a mess (unless you'r used to it, of course); my first complaint 
is the lack of an equivalent for ./config.status -V, which would just show the 
configuration parameters that were provided to cmake in this particular build 
directory.

Wolfgang


reply via email to

[Prev in Thread] Current Thread [Next in Thread]