Magellan Linux

Diff of /smage/trunk/core/glibc/glibc-2.26-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11072 by niro, Tue Sep 5 12:11:13 2017 UTC revision 11510 by niro, Wed Dec 20 12:11:20 2017 UTC
# Line 13  GLIBC_DEPEND=">= sys-apps/base-files-0.7 Line 13  GLIBC_DEPEND=">= sys-apps/base-files-0.7
13   >= sys-libs/tzdata-2017"   >= sys-libs/tzdata-2017"
14    
15  # we force headers to one specific version  # we force headers to one specific version
16  SDEPEND="== sys-kernel/linux-libc-headers-4.9.47  SDEPEND="== sys-kernel/linux-libc-headers-4.9.71
17   ${GLIBC_DEPEND}"   ${GLIBC_DEPEND}"
18    
19  # functions to include in the mage file  # functions to include in the mage file
# Line 41  SRC_URI=( Line 41  SRC_URI=(
41  UP2DATE="updatecmd_gnu ${PNAME/-nptl/} | sed 's/^\([0-9]\.[0-9]\$\)/\1.0/'"  UP2DATE="updatecmd_gnu ${PNAME/-nptl/} | sed 's/^\([0-9]\.[0-9]\$\)/\1.0/'"
42    
43  # glibc don't like strong CFLAGS  # glibc don't like strong CFLAGS
44  export CFLAGS="${CFLAGS//-O?} -O2"  #export CFLAGS="${CFLAGS//-O?} -O2"
45  # glibc -> nptl thread don't like striping  # glibc -> nptl thread don't like striping
46  msetfeature "!strip"  msetfeature "!strip"
47    
# Line 51  then Line 51  then
51   export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"   export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
52  fi  fi
53    
54  # glibc-2.6.1 and above needs march CFLAGS: -march=${ARCH} -mtune=generic  ## glibc-2.6.1 and above needs march CFLAGS: -march=${ARCH} -mtune=generic
55  # first filter -mtune and -march from flags  ## first filter -mtune and -march from flags
56  for flag in ${CFLAGS}  #for flag in ${CFLAGS}
57  do  #do
58   case ${flag} in  # case ${flag} in
59   -mtune=*) continue ;;  # -mtune=*) continue ;;
60   -march=*) continue ;;  # -march=*) continue ;;
61   esac  # esac
62   newflags="${newflags} ${flag}"  # newflags="${newflags} ${flag}"
63  done  #done
64  export CFLAGS="${newflags}"  #export CFLAGS="${newflags}"
65    #
66  # than add our defaults for glibc  ## than add our defaults for glibc
67  [[ ${ARCH} = i*86 ]] && export CFLAGS="${CFLAGS} -march=${ARCH}" # only i*86  #[[ ${ARCH} = i*86 ]] && export CFLAGS="${CFLAGS} -march=${ARCH}" # only i*86
68  export CFLAGS="${CFLAGS} -mtune=generic" # all arches  #export CFLAGS="${CFLAGS} -mtune=generic" # all arches
69  export CXXFLAGS="${CFLAGS}"  #export CXXFLAGS="${CFLAGS}"
70    
71  # use other linux-headers  # use other linux-headers
72  [[ -z ${ALT_HEADERS} ]] && export ALT_HEADERS="/usr/include"  [[ -z ${ALT_HEADERS} ]] && export ALT_HEADERS="/usr/include"
# Line 162  src_compile() Line 162  src_compile()
162   myopts+=" --enable-multi-arch"   myopts+=" --enable-multi-arch"
163   # enable stackguard randomization   # enable stackguard randomization
164   myopts+=" --enable-stackguard-randomization"   myopts+=" --enable-stackguard-randomization"
165     # enable stack protector
166     myopts+=" --enable-stack-protector=strong"
167    
168   # remove fortify for building libraries   # remove fortify for building libraries
169   export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}   export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}

Legend:
Removed from v.11072  
changed lines
  Added in v.11510