From 60a3b80c19e2b29085c0f1faccdb4a1784ac6661 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sat, 14 Jan 2023 15:19:12 +0100 Subject: [PATCH] Fix build on FreeBSD (#2852) --- config.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.mk b/config.mk index 930af6704..af43ce429 100644 --- a/config.mk +++ b/config.mk @@ -36,6 +36,11 @@ else SHLIB_SUFFIX := .so endif +ifneq (, $(findstring freebsd, $(MACHINE))) + CFLAGS += -I$(shell /sbin/sysctl -n user.localbase)/include + LDFLAGS += -L$(shell /sbin/sysctl -n user.localbase)/lib +endif + ifneq ($(OS),windows) CFLAGS += -fPIC else ifneq (, $(findstring NT-6.1,$(shell uname)))