From 31c3400f237499e6ac429c345593bec329d18215 Mon Sep 17 00:00:00 2001 From: Thierry LARONDE Date: Fri, 10 Jan 2025 20:18:06 +0100 Subject: [PATCH] examples/Makefile: libm is not added by default by all -lm has to be added for system/compilers that don't add the lib by default (the case on NetBSD). --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index 88a944f..17f6296 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -15,7 +15,7 @@ CFLAGS = -g $(CPPFLAGS) #CFLAGS = -g -fsanitize=address $(CPPFLAGS) CPPFLAGS = -I.. -I/usr/local/include -LIBS = -L.. -L/usr/local/lib -lpdfio -lz +LIBS = -L.. -L/usr/local/lib -lpdfio -lz -lm # Targets