Linking with gold linker fails - -lm missing

Issue #22 new
jlec
created an issue

/var/tmp/portage/net-im/pino-0.3_pre120101/work/pino-0.3_pre120101_build/src/visual_style.c:223: error: undefined reference to 'trunc' /var/tmp/portage/net-im/pino-0.3_pre120101/work/pino-0.3_pre120101_build/src/visual_style.c:224: error: undefined reference to 'trunc' /var/tmp/portage/net-im/pino-0.3_pre120101/work/pino-0.3_pre120101_build/src/visual_style.c:225: error: undefined reference to 'trunc' collect2: ld returned 1 exit status

Following patches fixes this:

diff -r eeddbfdb41fa CMakeLists.txt --- a/CMakeLists.txt Mon Jul 11 12:23:53 2011 +0300 +++ b/CMakeLists.txt Sun Jan 01 17:53:50 2012 +0100 @@ -141,6 +141,7 @@ ${LIBINDICATE_LIBRARIES} ${REST_LIBRARIES} #${RESTEXTRAS_LIBRARIES} + -lm )

include_directories(src/vapi/)

Comments (0)

  1. Log in to comment