[ntp] don't use -Wstrict-overflow with -fno-strict-overflow
Miroslav Lichvar
mlichvar at fedoraproject.org
Mon Jul 15 16:40:33 UTC 2013
commit 6aa634c88503f6dc08a933f39a365aff329d694d
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Mon Jul 15 14:26:03 2013 +0200
don't use -Wstrict-overflow with -fno-strict-overflow
ntp.spec | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/ntp.spec b/ntp.spec
index 8322c5b..51e06e4 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -220,6 +220,7 @@ touch ntpd/ntpd-opts.texi util/ntp-keygen-opts.texi
touch ntpd/ntpd.1 util/ntp-keygen.1
%build
+sed -i 's|$CFLAGS -Wstrict-overflow|$CFLAGS|' configure sntp/configure
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow"
if echo 'int main () { return 0; }' | gcc -pie -fPIE -O2 -xc - -o pietest 2>/dev/null; then
./pietest && export CFLAGS="$CFLAGS -pie -fPIE"
More information about the scm-commits
mailing list