Split wxMAKEFILE_FLAGS in separate CXX/LDFLAGS variables

This will allow appending extra CXXFLAGS to use with make in the
upcoming commit.
This commit is contained in:
Vadim Zeitlin 2020-07-06 15:34:30 +02:00
parent b91d3e35cf
commit c4152869f5
2 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,7 @@ matrix:
name: wxGTK 2 UTF-8 Ubuntu 18.04
- dist: bionic
compiler: gcc
env: wxGTK_VERSION=3 wxCONFIGURE_FLAGS="--enable-cxx11 --enable-stl --disable-webview" wxMAKEFILE_FLAGS="CXXFLAGS=-std=c++11 LDFLAGS=-Wl,--no-as-needed" wxUSE_XVFB=1
env: wxGTK_VERSION=3 wxCONFIGURE_FLAGS="--enable-cxx11 --enable-stl --disable-webview" wxMAKEFILE_CXXFLAGS=-std=c++11 wxMAKEFILE_LDFLAGS=-Wl,--no-as-needed wxUSE_XVFB=1
name: wxGTK 3 STL Ubuntu 18.04
- dist: bionic
compiler: clang

View File

@ -69,6 +69,13 @@ case $wxTOOLSET in
[ "$wxALLOW_WARNINGS" = 1 ] || export CXXFLAGS='-Werror -Wno-error=cpp'
if [ -n "$wxMAKEFILE_CXXFLAGS" ]; then
wxMAKEFILE_FLAGS="CXXFLAGS=$wxMAKEFILE_CXXFLAGS"
fi
if [ -n "$wxMAKEFILE_LDFLAGS" ]; then
wxMAKEFILE_FLAGS="$wxMAKEFILE_FLAGS LDFLAGS=$wxMAKEFILE_LDFLAGS"
fi
echo 'travis_fold:start:building'
echo 'Building...'
make -k $wxBUILD_ARGS