summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Helmle2018-12-05 17:19:45 +0000
committerBernd Helmle2018-12-05 17:19:45 +0000
commit1738539cae17774e9167d57161a21311938407ba (patch)
treece895890b302160537019300e65689d55c1e41c7
parent367f362b2d902de1c8f265639980ae001a4307e8 (diff)
Fix unsupported -flto parameter for ancient clang 3.4 version in CentOS 7.REL_11_STABLE_clang34
This allows to build PostgreSQL with JIT support in CentOS 7.
-rw-r--r--src/Makefile.global.in4
1 files changed, 2 insertions, 2 deletions
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