From 7d6a55abe2905be0037823c1d9209c31b376fd0f Mon Sep 17 00:00:00 2001
From: Darafei Praliaskouski <me@komzpa.net>
Date: Tue, 2 Jan 2018 18:38:27 +0000
Subject: [PATCH] [travis] Travis lies about cpu type which causes -march
 builds to fail.

Change the build matrix.

References #3967



git-svn-id: http://svn.osgeo.org/postgis/trunk@16216 b70326c6-7e19-0410-871a-916f4a2858ee
---
 .travis.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8434d6c3e..4bc4d6acd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,9 @@ env:
   global:
     - RUNTESTFLAGS=-v
   matrix:
-    - CFLAGS="-O3 -march=native -mtune=native"
-    - CFLAGS="-O3 -march=native -mtune=native -fno-omit-frame-pointer -Werror"
+    - CFLAGS="-Og"
+    - CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
+    - CFLAGS="-O3 -mtune=generic -fno-omit-frame-pointer -Werror"
     - CFLAGS="-O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage"
 
 addons:
@@ -43,6 +44,7 @@ before_install:
 
 after_failure:
   - sudo head -n1000 /var/log/postgresql/postgresql-9.6-main.log 
+  - cat /proc/cpuinfo
 
 after_success:
   - bash <(curl -s https://codecov.io/bash)
-- 
2.40.0