Browse Source

Update Makefile for macOS to be more "correct" with Linux

gingerBill 4 years ago
parent
commit
ec2db568c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -9,7 +9,7 @@ OS=$(shell uname)
 ifeq ($(OS), Darwin)
 ifeq ($(OS), Darwin)
 	LDFLAGS:=$(LDFLAGS) -liconv
 	LDFLAGS:=$(LDFLAGS) -liconv
 	CFLAGS:=$(CFLAGS) $(shell llvm-config --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
 	CFLAGS:=$(CFLAGS) $(shell llvm-config --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
-	LDFLAGS:=$(LDFLAGS) $(shell llvm-config) -lLLVM-C
+	LDFLAGS:=$(LDFLAGS) $(shell llvm-config-11 --libs core native --system-libs)
 endif
 endif
 ifeq ($(OS), Linux)
 ifeq ($(OS), Linux)
 	CFLAGS:=$(CFLAGS) $(shell llvm-config-11 --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
 	CFLAGS:=$(CFLAGS) $(shell llvm-config-11 --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM