mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
sync
This commit is contained in:
parent
5d94398e65
commit
915f6a8781
30
.travis.yml
30
.travis.yml
|
@ -1,11 +1,33 @@
|
|||
dist: trusty
|
||||
language: cpp
|
||||
compiler:
|
||||
- gcc
|
||||
# - clang
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- compiler: gcc
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- llvm-toolchain-precise-3.7
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-5-multilib
|
||||
- gcc-5-multilib
|
||||
|
||||
- compiler: clang
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- llvm-toolchain-precise-3.7
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- clang-3.7
|
||||
|
||||
#before_install:
|
||||
# - sudo pip install cpp-coveralls
|
||||
#install:
|
||||
|
||||
install:
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
|
||||
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
|
||||
# - cd ${TRAVIS_BUILD_DIR}
|
||||
# - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
|
||||
# - tar xf lcov_1.11.orig.tar.gz
|
||||
|
|
17
configure
vendored
17
configure
vendored
|
@ -32847,10 +32847,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
|
|||
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
||||
else
|
||||
to_match='gcc (Ubuntu 5.*'
|
||||
|
||||
case `gcc --version | head -n 1` in
|
||||
$to_match) ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc" ;; # On Ubuntu 16.04 bug: [#65612](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65612)
|
||||
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
@ -36688,7 +36686,6 @@ if test -n "$AWK"; then
|
|||
fi
|
||||
|
||||
echo
|
||||
echo "***"
|
||||
|
||||
# Verify the integrity of the current configuration
|
||||
if test "$cross_compiling" != "yes"; then
|
||||
|
@ -36725,8 +36722,17 @@ $as_echo "$ac_cv_configuration_is_usable" >&6; }
|
|||
|
||||
if test "$ac_cv_configuration_is_usable" = "no" ; then
|
||||
# It appears that ulib/internal/common.cpp not compiled. If it didn't compile then there would be no chance that the rest would compile.
|
||||
as_fn_error $? "The generated configuration appears to be unusable.
|
||||
Please verify that your system path and environment variables are correct." "$LINENO" 5
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
|
||||
$as_echo "" >&6; }
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct:${T_ME}" >&5
|
||||
$as_echo "${T_MD}The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct:${T_ME}" >&6; }
|
||||
|
||||
echo "***********************************************************************************************************************************"
|
||||
NLINE=`grep -n 'checking if generated configuration is usable' config.log | cut -d':' -f1`
|
||||
CFGLOG=`tail -n +$NLINE config.log`
|
||||
echo "${CFGLOG}"
|
||||
echo "***********************************************************************************************************************************"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -36735,4 +36741,3 @@ echo
|
|||
echo "You are now ready to build ULib"
|
||||
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
|
||||
echo "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
|
||||
echo "***"
|
||||
|
|
12
configure.ac
12
configure.ac
|
@ -2540,10 +2540,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
|
|||
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
||||
else
|
||||
to_match='gcc (Ubuntu 5.*'
|
||||
|
||||
case `gcc --version | head -n 1` in
|
||||
$to_match) ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc" ;; # On Ubuntu 16.04 bug: [#65612](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65612)
|
||||
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
@ -2762,7 +2760,6 @@ if test -n "$AWK"; then
|
|||
fi
|
||||
|
||||
echo
|
||||
echo "***"
|
||||
|
||||
# Verify the integrity of the current configuration
|
||||
if test "$cross_compiling" != "yes"; then
|
||||
|
@ -2776,8 +2773,12 @@ if test "$cross_compiling" != "yes"; then
|
|||
|
||||
if test "$ac_cv_configuration_is_usable" = "no" ; then
|
||||
# It appears that ulib/internal/common.cpp not compiled. If it didn't compile then there would be no chance that the rest would compile.
|
||||
AC_MSG_ERROR([The generated configuration appears to be unusable.
|
||||
Please verify that your system path and environment variables are correct.])
|
||||
TWOCAN_CONF_MSG(The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct)
|
||||
echo "***********************************************************************************************************************************"
|
||||
NLINE=`grep -n 'checking if generated configuration is usable' config.log | cut -d':' -f1`
|
||||
CFGLOG=`tail -n +$NLINE config.log`
|
||||
echo "${CFGLOG}"
|
||||
echo "***********************************************************************************************************************************"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -2786,4 +2787,3 @@ echo
|
|||
echo "You are now ready to build ULib"
|
||||
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
|
||||
echo "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
|
||||
echo "***"
|
||||
|
|
Loading…
Reference in New Issue
Block a user