aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-25 15:48:54 +0100
committergingerBill <bill@gingerbill.org>2021-04-25 15:48:54 +0100
commitfb6288a54e645cbe64e9e2c8b8c0d72b3baae65c (patch)
treef51e66875f6d550c867c26eedee3d23cd71f5f9f /Makefile
parent4d000588587ff0ab2064347c72e58322b0d37739 (diff)
Try specifying the specific libs on Linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5e55e8f5a..193d5ae52 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
GIT_SHA=$(shell git rev-parse --short HEAD)
DISABLED_WARNINGS=-Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined
LDFLAGS=-pthread -ldl -lm -lstdc++
-CFLAGS=-std=c++11 -DGIT_SHA=\"$(GIT_SHA)\"
+CFLAGS=-std=c++14 -DGIT_SHA=\"$(GIT_SHA)\"
CC=clang
OS=$(shell uname)
@@ -13,7 +13,7 @@ ifeq ($(OS), Darwin)
endif
ifeq ($(OS), Linux)
CFLAGS:=$(CFLAGS) $(shell llvm-config-11 --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
- LDFLAGS:=$(LDFLAGS) $(shell llvm-config-11) -lLLVM-C
+ LDFLAGS:=$(LDFLAGS) $(shell llvm-config-11 --libs core native --system-libs)
endif
all: debug demo