Makefile: Fix library link order #49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gitlab-mr-iid-32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When compiling with the internal lexbor, the linker is invoked as
cc [...] -lm lexbor_static.a which, at least on GCC 12 i386 glibc, fails with:
/usr/bin/ld: c_src/lexbor/liblexbor_static.a(diyfp.c.o): in function
lexbor_cached_power_bin': ./deps/fast_html/c_src/lexbor/./deps/fast_html/c_src/lexbor/source/lexbor/core/diyfp.c:140: undefined reference toceil'collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:45: priv/fasthtml_worker] Error 1
Fix it by ordering -lm after lexbor_static.a.
This issue exists on 2.3.0 (as used by pleroma 2.8.0) and 2.4.0.
PS: Happy new year!
Oh, right I forget about linking order so often… thanks!
Pull request closed