I have a cross compiler that is setup and I am having trouble locating the M library.
I am using the following:
m_dep = cc.find_library('libm', required : false)
if m_dep.found() == false
message('looking at '+sysrootdir+'/lib')
m_dep = cc.find_library('libm', required : true, dirs: sysrootdir+'/lib')
endif
So first thing I do is search for libm in default path - that works on one of my cross compilers -but not on the other.
Then if that dependency is not found - then I specify that I want to find it at sysrootdir+'/lib'
Message: looking at /localview/xxxxxxx/sysroots/armv5te-dspg-linux-gnueabi/lib
Meson encountered an error in file meson.build, line 15, column 1:
C library 'libm' not found
But if I go look at that folder - I do see a libm - but it has a version on it.
libm.so.6
How can I force find_library to find libm when it has a version attached like this?
TODDL