Skip to content

Commit

Permalink
Link libraries explicitly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pepe committed Nov 4, 2024
1 parent 9e05ef8 commit 5f092a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,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
Expand Down

0 comments on commit 5f092a4

Please sign in to comment.