Fix build on FreeBSD (#2852)

This commit is contained in:
Michael Neumann 2023-01-14 15:19:12 +01:00 committed by GitHub
parent d78d0bff60
commit 60a3b80c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,11 @@ else
SHLIB_SUFFIX := .so SHLIB_SUFFIX := .so
endif 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) ifneq ($(OS),windows)
CFLAGS += -fPIC CFLAGS += -fPIC
else ifneq (, $(findstring NT-6.1,$(shell uname))) else ifneq (, $(findstring NT-6.1,$(shell uname)))