update to build for FreeBSD

This commit is contained in:
Al Hoang
2022-03-08 23:48:25 -06:00
parent 9848e883c7
commit 0278ac85a0
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -62,6 +62,12 @@ ifeq ($(OS), OpenBSD)
CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs)
endif
ifeq ($(OS), FreeBSD)
LLVM_CONFIG=/usr/local/bin/llvm-config11
CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs)
endif
all: debug demo