URL: <http://gna.org/bugs/?15973>
Summary: libfreeciv should be linked against libm Project: Freeciv Submitted by: None Submitted on: Friday 04/30/2010 at 21:12 CEST Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: jkl102...@yahoo.com Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: _______________________________________________________ Details: For example, common/unittype.c uses the 'ceil' function. Attached is a patch. The problem becomes clear when you try to build libfreeciv as a shared library. Static linking works because both the server and client are linked against libm for other reasons. Note that in addition unittype.c does not directly include math.h, which it should. The file compiles because the header ends up getting included indirectly through a chain of other includes. JKL _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Friday 04/30/2010 at 21:12 CEST Name: libfreeciv-libm.patch Size: 777B By: None <http://gna.org/bugs/download.php?file_id=9094> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?15973> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev