cookutils diff cook @ rev 1040
modules/deps: provide `cook <pkg> --deps --quiet` quiet mode; cooker: provide `cooker autodeps`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 22 05:14:32 2018 +0200 (2018-03-22) |
parents | f2773281e93d |
children | 25e91fd33194 |
line diff
1.1 --- a/cook Wed Feb 21 12:55:19 2018 +0200 1.2 +++ b/cook Thu Mar 22 05:14:32 2018 +0200 1.3 @@ -547,6 +547,19 @@ 1.4 echo "fix libtool: warning: libtool absent, nothing to fix." 1.5 fi 1.6 ;; 1.7 + math) 1.8 + # fix C++ math issue introduced in Glibc 2.26: 1.9 + # error: '__builtin_isnan' is not a member of 'std' 1.10 + # if (std::isnan(N)) { 1.11 + # ^ 1.12 + find $src -type f -exec sed -i ' 1.13 + s|std::signbit|__builtin_signbit|g; 1.14 + s|std::isnan|__builtin_isnan|g; 1.15 + s|std::isinf|__builtin_isinf_sign|g; 1.16 + s|std::isfinite|__builtin_isfinite|g; 1.17 + s|std::isnormal|__builtin_isnormal|g 1.18 + ' '{}' \; 1.19 + ;; 1.20 esac 1.21 } 1.22 1.23 @@ -614,8 +627,8 @@ 1.24 # Export flags and path to be used by make and receipt. 1.25 DESTDIR="$pkgdir/install" 1.26 # FIXME: L10n: Is this the right time for 'LC_ALL=C LANG=C'? 1.27 - export DESTDIR MAKEFLAGS CFLAGS CXXFLAGS CONFIG_SITE LC_ALL=C LANG=C 1.28 - #LDFLAGS 1.29 + export DESTDIR MAKEFLAGS CFLAGS CXXFLAGS CONFIG_SITE LC_ALL=C LANG=C \ 1.30 + LDFLAGS 1.31 1.32 # BUILD_DEPENDS may vary depending on the ARCH 1.33 case "$ARCH" in 1.34 @@ -759,7 +772,7 @@ 1.35 if grep -q ^compile_rules $receipt; then 1.36 _ 'Executing: %s' 'compile_rules' 1.37 echo "CFLAGS : $CFLAGS" 1.38 - #echo "LDFLAGS : $LDFLAGS" 1.39 + echo "LDFLAGS : $LDFLAGS" 1.40 [ -d "$src" ] && cd $src 1.41 patchit 1.42