mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-23 18:42:17 +01:00
Merge pull request #1692 from Kampbell/honor-export-CXX-g++-4.8
Honor export cxx g++ 4.8
This commit is contained in:
commit
bcd148281f
111
.travis.yml
111
.travis.yml
@ -28,6 +28,9 @@ services:
|
||||
- postgresql
|
||||
- mysql
|
||||
|
||||
dist: trusty
|
||||
sudo: required
|
||||
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
|
||||
@ -54,95 +57,118 @@ matrix:
|
||||
fast_finish: true
|
||||
|
||||
include:
|
||||
- env: TEST_NAME="OSX clang (make) bundled"
|
||||
- env: TEST_NAME="clang (make) bundled"
|
||||
os: osx
|
||||
compiler: clang
|
||||
script:
|
||||
- export CC="clang"
|
||||
- export CXX="clang++"
|
||||
- $CXX --version
|
||||
- clang++ -x c++ /dev/null -dM -E
|
||||
- ./configure --everything --omit=Data/ODBC,Data/MySQL,Data/PostgreSQL && make -s -j2 && sudo make install && ./travis/OSX/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.6 (make) bundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- ./configure --everything && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.8 (make) bundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- ./configure --everything && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.6 (make) unbundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
||||
- ./configure --everything --unbundled && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.8 (make) unbundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- ./configure --everything --unbundled && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux clang 3.4 (make)"
|
||||
- env: TEST_NAME="clang (make) bundled"
|
||||
compiler: clang
|
||||
script:
|
||||
- ./configure --everything --config=Linux-clang && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
- sudo apt-get install -qq -y clang
|
||||
- export CC="clang"
|
||||
- export CXX="clang++"
|
||||
- $CXX --version
|
||||
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
||||
- ./configure --everything && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="clang (make) unbundled"
|
||||
compiler: clang
|
||||
script:
|
||||
- sudo apt-get install -qq -y clang
|
||||
- export CC="clang"
|
||||
- export CXX="clang++"
|
||||
- $CXX --version
|
||||
- ./configure --everything --unbundled && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="gcc 4.6 (make) bundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- $CXX --version
|
||||
- ./configure --everything && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="gcc 4.6 (make) unbundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- $CXX --version
|
||||
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
||||
- ./configure --everything --unbundled && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="Linux arm-linux-gnueabi- (make)"
|
||||
- env: TEST_NAME="gcc 4.8 (make) bundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- $CXX --version
|
||||
- ./configure --everything && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="gcc 4.8 (make) unbundled"
|
||||
compiler: gcc
|
||||
script:
|
||||
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- $CXX --version
|
||||
- ./configure --everything --unbundled && make -s -j2 && ./travis/Linux/runtests.sh
|
||||
|
||||
- env: TEST_NAME="arm-linux-gnueabi- (make)"
|
||||
compiler: gcc
|
||||
script:
|
||||
- ./configure --omit=Data/ODBC,Data/MySQL,Data/PostgreSQL,Crypto,NetSSL,PageCompiler && make -s -j2 CROSS_COMPILE=arm-linux-gnueabi- POCO_TARGET_OSARCH=armv7l
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.6 (CMake)"
|
||||
- env: TEST_NAME="gcc 4.6 (CMake)"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- $CXX --version
|
||||
- source ./travis/ignored.sh
|
||||
- export POCO_BASE=`pwd`
|
||||
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=ON .. && make -s -j2 && ctest -VV -E Data && cd ..
|
||||
|
||||
- env: TEST_NAME="Linux gcc 4.8 (CMake)"
|
||||
- env: TEST_NAME="gcc 4.8 (CMake)"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- $CXX --version
|
||||
- source ./travis/ignored.sh
|
||||
- export POCO_BASE=`pwd`
|
||||
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=ON .. && make -s -j2 && ctest -VV -E Data && cd ..
|
||||
|
||||
- env: TEST_NAME="Linux clang 3.4 (CMake)"
|
||||
- env: TEST_NAME="clang 3.4 (CMake)"
|
||||
compiler: clang
|
||||
script:
|
||||
- source ./travis/ignored.sh
|
||||
- export POCO_BASE=`pwd`
|
||||
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=ON .. && make -s -j2 && ctest -VV -E Data && cd ..
|
||||
|
||||
- env: TEST_NAME="Linux arm-linux-gnueabi-g++ (CMake)"
|
||||
- env: TEST_NAME="arm-linux-gnueabi-g++ (CMake)"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="arm-linux-gnueabi-gcc"
|
||||
- export CXX="arm-linux-gnueabi-g++"
|
||||
- $CXX --version
|
||||
- source ./travis/ignored.sh
|
||||
- export POCO_BASE=`pwd`
|
||||
- mkdir cmake-build
|
||||
- cd cmake-build && cmake -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_TESTS=ON .. && make -s -j2 && cd ..
|
||||
|
||||
- env: TEST_NAME="Linux arm-linux-gnueabihf-g++ (CMake)"
|
||||
- env: TEST_NAME="arm-linux-gnueabihf-g++ (CMake)"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="arm-linux-gnueabihf-gcc"
|
||||
- export CXX="arm-linux-gnueabihf-g++"
|
||||
- $CXX --version
|
||||
- source ./travis/ignored.sh
|
||||
- export POCO_BASE=`pwd`
|
||||
- mkdir cmake-build
|
||||
@ -151,11 +177,12 @@ matrix:
|
||||
|
||||
# QA jobs for code analytics and metrics
|
||||
# build documentation and release
|
||||
- env: TEST_NAME="Linux documentation & release"
|
||||
- env: TEST_NAME="documentation & release"
|
||||
compiler: gcc
|
||||
script:
|
||||
- export CC="gcc"
|
||||
- export CXX="g++"
|
||||
- export CC="gcc-4.8"
|
||||
- export CXX="g++-4.8"
|
||||
- $CXX --version
|
||||
- . env.sh && mkdoc all && mkrel all
|
||||
|
||||
# static code analysis with cppcheck (we can add --enable=all later)
|
||||
|
@ -46,6 +46,7 @@ pcre_utf8_objects = pcre_ucd pcre_tables
|
||||
|
||||
ifdef POCO_UNBUNDLED
|
||||
SYSLIBS += -lpcre -lz
|
||||
objects += $(pcre_utf8_objects)
|
||||
else
|
||||
objects += $(zlib_objects) $(pcre_objects) $(pcre_utf8_objects)
|
||||
endif
|
||||
|
@ -10,10 +10,6 @@ include $(POCO_BASE)/build/rules/global
|
||||
|
||||
objects = File2Page
|
||||
|
||||
ifdef POCO_UNBUNDLED
|
||||
SYSLIBS += -lz -lpcre -lexpat
|
||||
endif
|
||||
|
||||
target = f2cpsp
|
||||
target_version = 1
|
||||
target_libs = PocoUtil PocoXML PocoJSON PocoFoundation
|
||||
|
@ -44,7 +44,7 @@
|
||||
${PocoBuild}/*/doc/images
|
||||
</resources>
|
||||
<compiler>
|
||||
<exec>g++</exec>
|
||||
<exec>${CXX}</exec>
|
||||
<options>
|
||||
${Includes},
|
||||
-I/usr/local/mysql/include,
|
||||
|
@ -41,7 +41,7 @@
|
||||
${PocoBuild}/*/doc/images
|
||||
</resources>
|
||||
<compiler>
|
||||
<exec>g++</exec>
|
||||
<exec>${CXX}</exec>
|
||||
<options>
|
||||
${Includes},
|
||||
-I/usr/local/mysql/include,
|
||||
|
@ -15,14 +15,22 @@ LINKMODE ?= SHARED
|
||||
#
|
||||
# Define Tools
|
||||
#
|
||||
CC = ${CROSS_COMPILE}gcc
|
||||
CXX = ${CROSS_COMPILE}g++
|
||||
ifeq ($(origin CROSS_COMPILE), undefined)
|
||||
CC ?=gcc
|
||||
CXX ?=g++
|
||||
LIB = ar -cr
|
||||
RANLIB = ranlib
|
||||
STRIP = strip
|
||||
else
|
||||
CC = ${CROSS_COMPILE}gcc
|
||||
CXX = ${CROSS_COMPILE}g++
|
||||
LIB = ${CROSS_COMPILE}ar -cr
|
||||
RANLIB = ${CROSS_COMPILE}ranlib
|
||||
STRIP = ${CROSS_COMPILE}strip
|
||||
endif
|
||||
LINK = $(CXX)
|
||||
LIB = ${CROSS_COMPILE}ar -cr
|
||||
RANLIB = ${CROSS_COMPILE}ranlib
|
||||
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
|
||||
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
||||
STRIP = ${CROSS_COMPILE}strip
|
||||
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
||||
SHELL = sh
|
||||
RM = rm -rf
|
||||
|
@ -117,6 +117,11 @@ for inc in `find $build -name include -print` ; do
|
||||
includes="$includes,-I$inc"
|
||||
done
|
||||
|
||||
: ${CC:=gcc}
|
||||
: ${CXX:=g++}
|
||||
|
||||
echo "CC=$CC" >>$build/PocoDoc.ini
|
||||
echo "CXX=$CXX" >>$build/PocoDoc.ini
|
||||
echo "PocoBuild=$build" >>$build/PocoDoc.ini
|
||||
echo "PocoBase=$POCO_BASE" >>$build/PocoDoc.ini
|
||||
echo "PocoDoc.output=$docPath" >>$build/PocoDoc.ini
|
||||
|
Loading…
x
Reference in New Issue
Block a user