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 11077 by niro, Thu Sep 7 08:56:10 2017 UTC revision 11510 by niro, Wed Dec 20 12:11:20 2017 UTC
# Line 4  PNAME="glibc" Line 4  PNAME="glibc"
4  PVER="2.26"  PVER="2.26"
5  PBUILD="r1"  PBUILD="r1"
6    
 STATE="disabled" # not working with i486 anymore  
7  SPLIT_PACKAGES="glibc glibc-dev glibc-locale-de"  SPLIT_PACKAGES="glibc glibc-dev glibc-locale-de"
8    
9  PCAT="sys-libs"  PCAT="sys-libs"
# Line 14  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 52  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 163  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.11077  
changed lines
  Added in v.11510