Skip to content

Commit 9cc8a35

Browse files
committed
Fix font-edit linking error: add -lm
The recent refactoring of sfit.c removed the custom sqrt() in favor of using the standard library's sqrt() and fabs() functions. This requires linking against the math library. Link error: undefined reference to symbol 'sqrt@@GLIBC_2.2.5' DSO missing from command line: libm.so.6
1 parent b00c21c commit 9cc8a35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ font-edit_cflags-y := \
175175
$(shell sdl2-config --cflags)
176176
font-edit_ldflags-y := \
177177
$(shell pkg-config --libs cairo) \
178-
$(shell sdl2-config --libs)
178+
$(shell sdl2-config --libs) \
179+
-lm
179180

180181
# Headless control tool
181182
target-$(CONFIG_TOOL_HEADLESS_CTL) += headless-ctl

0 commit comments

Comments
 (0)