Skip to content

Commit 477c583

Browse files
mneumannjoelberkeley
authored andcommitted
Fix build on FreeBSD (idris-lang#2852)
1 parent 4b75e2f commit 477c583

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config.mk

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ else
3636
SHLIB_SUFFIX := .so
3737
endif
3838

39+
ifneq (, $(findstring freebsd, $(MACHINE)))
40+
CFLAGS += -I$(shell /sbin/sysctl -n user.localbase)/include
41+
LDFLAGS += -L$(shell /sbin/sysctl -n user.localbase)/lib
42+
endif
43+
3944
ifneq ($(OS),windows)
4045
CFLAGS += -fPIC
4146
else ifneq (, $(findstring NT-6.1,$(shell uname)))

0 commit comments

Comments
 (0)