From 2fe15eacaa6a9a375db81cd79699bfd94ebe9593 Mon Sep 17 00:00:00 2001 From: ideal Date: Wed, 9 Sep 2020 15:51:15 +0800 Subject: [PATCH] add -fPIE to support clang 10.0+ --- weld/llvmext/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weld/llvmext/Makefile b/weld/llvmext/Makefile index 4a1ada4e9..5f19861fa 100644 --- a/weld/llvmext/Makefile +++ b/weld/llvmext/Makefile @@ -1,7 +1,7 @@ OS = $(shell uname -s) LLVM_VERSION = $(shell llvm-config --version | cut -d . -f 1,2) -CFLAGS = -O3 -fno-use-cxa-atexit +CFLAGS = -O3 -fno-use-cxa-atexit -fPIE CFLAGS += $(shell llvm-config --cppflags) $(shell llvm-config --cxxflags) LIBDIR = $(shell llvm-config --libdir) LLVMLIBS = $(shell llvm-config --system-libs) $(shell llvm-config --libs)