aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libxcoder/files/patch-Makefile
blob: 0be508166aeb35e1efee7fe2a5367548a0daf583 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- Makefile.orig	2026-10-17 00:01:03 UTC
+++ Makefile
@@ -120,6 +120,9 @@ ifeq ($(WINDOWS), FALSE)
 ifeq ($(WINDOWS), FALSE)
 	ifeq ($(UNAME), Darwin)
 		LDFLAGS += -lpthread -lm
+	else ifeq ($(UNAME), FreeBSD)
+		# librt and libdl are part of libc on FreeBSD; backtrace() is in libexecinfo
+		LDFLAGS += -lpthread -lm -lexecinfo
 	else
 		LDFLAGS += -lpthread -lrt -lm -ldl
 		ifeq ($(HAVE_MCTF), TRUE)