I suppose the best way to force linking with -lm is to use something like this 
in CMakeLists.txt:

IF (UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES (doomsday m)
ENDIF()

There already are a couple of TARGET_LINK_LIBRARIES defined in CMakeLists.txt, 
the "m" could also be added to one of those.

-jaakko
On Tuesday, April 19, 2011 at 23:16, Kees Meijs wrote: 
> Good evening,
> 
> On 04/14/2011 01:58 PM, Jaakko Keränen wrote:
> > Well, at least I can say that currently the master branch is compiling 
> > nicely in Squeeze (64-bit) -- although it crashes (maybe exits with an 
> > error) when I try to start a game.
> > 
> > I haven't tried compiling the old beta6.9 release yet.
> 
> I suspect it's all about the change in DSO linking. When explicitely
> adding libm (thanks KiBi!) to the LD options building the Doomsday
> Engine release does work fine.
> 
> To be honest I'm not really familiar with CMake. How can we add libm to
> be explicitely linked in a clean way? Can we simply add the library to
> e.g. CMakeLists.txt?
> 
> Regards,
> Kees
> 




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to