From 9b92edddbe506c3ebaa6f970e62270facdcc5a27 Mon Sep 17 00:00:00 2001 From: Adrian Vondendriesch Date: Mon, 30 Jan 2017 17:06:35 -0500 Subject: [PATCH] Remove Intel-specific optimization from C library build flags. Contributed by Adrian Vondendriesch. --- doc/xml/release.xml | 8 ++++++++ libc/Makefile.PL | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 08252ca25..ed8abec9c 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -272,6 +272,14 @@

Reduced the likelihood of torn pages causing a false positive in page checksums by filtering on start backup LSN.

+ + + + + + +

Remove Intel-specific optimization from C library build flags.

+
diff --git a/libc/Makefile.PL b/libc/Makefile.PL index ec85ee31a..312aa8cc7 100644 --- a/libc/Makefile.PL +++ b/libc/Makefile.PL @@ -12,7 +12,7 @@ WriteMakefile NAME => 'pgBackRest::LibC', VERSION_FROM => 'lib/pgBackRest/LibC.pm', # finds $VERSION, requires EU::MM from perl >= 5.5 AUTHOR => 'David Steele ', - CCFLAGS => '-std=c99 -msse4.1 -funroll-loops -ftree-vectorize -ftree-vectorizer-verbose=2', + CCFLAGS => '-std=c99 -funroll-loops -ftree-vectorize -ftree-vectorizer-verbose=2 $(CFLAGS)', LIBS => [''], # e.g., '-lm' DEFINE => '', # e.g., '-DHAVE_SOMETHING' INC => '-I.', # e.g., '-I. -I/usr/include/other'