From: Bernd Helmle Date: Wed, 5 Dec 2018 17:19:45 +0000 (+0100) Subject: Fix unsupported -flto parameter for ancient clang 3.4 version in CentOS 7. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FREL_11_STABLE_clang34;p=users%2Fbernd%2Fpostgres.git Fix unsupported -flto parameter for ancient clang 3.4 version in CentOS 7. This allows to build PostgreSQL with JIT support in CentOS 7. --- diff --git a/src/Makefile.global.in b/src/Makefile.global.in index bc78186285..733b7db197 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -1000,11 +1000,11 @@ endif # enable_coverage ifndef COMPILE.c.bc # -Wno-ignored-attributes added so gnu_printf doesn't trigger # warnings, when the main binary is compiled with C. -COMPILE.c.bc = $(CLANG) -Wno-ignored-attributes $(BITCODE_CFLAGS) $(CPPFLAGS) -flto=thin -emit-llvm -c +COMPILE.c.bc = $(CLANG) -Wno-ignored-attributes $(BITCODE_CFLAGS) $(CPPFLAGS) -emit-llvm -c endif ifndef COMPILE.cxx.bc -COMPILE.cxx.bc = $(CLANG) -xc++ -Wno-ignored-attributes $(BITCODE_CXXFLAGS) $(CPPFLAGS) -flto=thin -emit-llvm -c +COMPILE.cxx.bc = $(CLANG) -xc++ -Wno-ignored-attributes $(BITCODE_CXXFLAGS) $(CPPFLAGS) -emit-llvm -c endif %.bc : %.c