From 72db8966527fd4bbbe8d5c6c642ae2d85b3ec76b Mon Sep 17 00:00:00 2001 From: pepe Date: Mon, 4 Nov 2024 22:59:55 +0100 Subject: [PATCH] Link libraries explicitly pthread and libmath are linked implicitly when linking sanitizers. If NO_SANITIZERS is 1, this will lead to a linker error due to the missing libraries. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 9abd1adb..e91ef010 100644 --- a/Makefile +++ b/Makefile @@ -163,6 +163,7 @@ ifneq ($(NO_WARN_FAIL),1) endif CFLAGS_linux += -ggdb CFLAGS_linux += -DFFMPEG_DECODING +LFLAGS_linux += -pthread -lm # for now enable extensive error checking # Add flags for extensive error checking if NO_SANITIZERS is not set to 1