Page MenuHomePhabricator

Additional link option needed
Closed, ResolvedPublic


Building EFL from git on FreeBSD 12.1 according to tutorial, I get an error from linker about log2 symbol undefined. The error can be fixed adding '-lm' option to LDFLAGS exported.

diff --git a/src/lib/eo/ b/src/lib/eo/
index 9cd3377..3a4e1e9 100644
--- a/src/lib/eo/
+++ b/src/lib/eo/
@@ -2,6 +2,10 @@ eo_deps = []
 eo_pub_deps = [eina]
 eo_ext_deps = [valgrind, dl, execinfo]
+if host_os == 'freebsd' or host_os == 'dragonfly'
+  eo_deps += declare_dependency(link_args : [ '-lm' ])
 pub_eo_files = [

This issue seems to have been around for quite a while. I don't think it's anything to do with @bu5hm4n's changes today.

Can anyone advise on a less clunky fix than the above patch???

mhm, give me time until tomorrow. I think eina should drag in -lm for everyone that uses it. as eina includes math.h. Will check and investigate tomorrow.

Thanks Marcel

netstar closed this task as Resolved.May 29 2020, 2:34 AM
netstar claimed this task.

Back port this?