cookutils rev 1038

cook.conf: better keep CFLAGS and CXXFLAGS the same
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Mar 19 22:48:21 2018 +0200 (2018-03-19)
parents 0f7c6348363c
children 5a63ab7642f2
files cook.conf
line diff
     1.1 --- a/cook.conf	Sun Mar 18 12:08:29 2018 +0200
     1.2 +++ b/cook.conf	Mon Mar 19 22:48:21 2018 +0200
     1.3 @@ -82,11 +82,11 @@
     1.4  # FIXME: it looks like the flag '-mindirect-branch=thunk-extern' recommended,
     1.5  # but no one app is compiled using it even using GCC-7.3. Is something wrong?
     1.6  case "$ARCH" in
     1.7 -	i?86)   CFLAGS="-march=$ARCH  -Os -pipe -mindirect-branch=thunk";;
     1.8 -	x86_64) CFLAGS="-march=nocona -Os -pipe -mindirect-branch=thunk";;
     1.9 +	i?86)   CFLAGS="-march=$ARCH  -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1";;
    1.10 +	x86_64) CFLAGS="-march=nocona -Os -pipe -mindirect-branch=thunk -D_GLIBCXX_USE_C99_MATH=1";;
    1.11  	arm*)   CFLAGS="-march=armv6  -O2";; # FIXME
    1.12  esac
    1.13 -CXXFLAGS="$CFLAGS -D_GLIBCXX_USE_C99_MATH=1"
    1.14 +CXXFLAGS="$CFLAGS"
    1.15  
    1.16  # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
    1.17  #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"