From 12af9b262be8e4ee6f94922b1fcbe10b0630bb9f Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 2 Apr 2017 01:07:00 +0200 Subject: [PATCH] build: switch to gcc-5 (in travis) --- .travis.yml | 4 ++++ Makefile | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2aeda09787..f819bc954a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,10 @@ language: c addons: apt: + sources: + - ubuntu-toolchain-r-test packages: + - gcc-5 - check - cmake - cmake-data @@ -15,6 +18,7 @@ install: - pip install --user pytest ecdsa curve25519-donna script: + - export CC='gcc-5' - make - ./tests - ./test-openssl 1000 diff --git a/Makefile b/Makefile index 5e0609f730..1e78ffe97c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -CC = gcc +CC ?= gcc -OPTFLAGS = -O3 -g +OPTFLAGS ?= -O3 -g CFLAGS += $(OPTFLAGS) \ -std=gnu99 \