From 9a1bc8cafb904c20a869c74ad6d657686a1c4bb1 Mon Sep 17 00:00:00 2001 From: Chris Dickens Date: Mon, 30 Mar 2020 12:28:11 -0700 Subject: build: Require C11 to build and clean up autoconfig/automake files C11 compiler support has been available for many years now. It is not unreasonable to require this now, and doing so allows some cleanup to the configure script. It is no longer necessary to check for compiler support of the '-fvibility' flag because any compiler that supports C11 will support this flag as well. Fix up the way that compiler and linker flags are passed down to the various makefiles. The compiler flags should be shared by all, but the linker flags and libraries should be separated between the library and the examples/tests. The visibility flag is only relevant for the library and the thread flags are only relevant for sources using thread constructs, so provide them as needed. Rearrange configure.ac to group similar functionality and consolidate where possible. Based on these changes, update the Travis configuration file to include newer versions of test platforms to ensure proper C11 compiler support. Signed-off-by: Chris Dickens --- .travis.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f5d194a..eb477a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,30 +3,34 @@ language: c matrix: include: - os: linux - dist: trusty - sudo: required + dist: bionic compiler: gcc - os: linux - dist: trusty - sudo: required + dist: bionic + compiler: clang + - os: linux + dist: xenial + compiler: gcc + - os: linux + dist: xenial compiler: clang - os: osx - osx_image: xcode8 + osx_image: xcode11.3 compiler: gcc - os: osx - osx_image: xcode8 + osx_image: xcode11.3 compiler: clang - os: osx - osx_image: xcode7.1 + osx_image: xcode9.4 compiler: gcc - os: osx - osx_image: xcode7.1 + osx_image: xcode9.4 compiler: clang - os: osx - osx_image: beta-xcode6.2 + osx_image: xcode6.4 compiler: gcc - os: osx - osx_image: beta-xcode6.2 + osx_image: xcode6.4 compiler: clang addons: -- cgit v1.2.1