/[gentoo-x86]/sys-libs/glibc/files/eblits/pkg_setup.eblit
Gentoo

Diff of /sys-libs/glibc/files/eblits/pkg_setup.eblit

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.2 2009/03/19 09:38:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.3 2009/03/23 18:48:48 vapier Exp $
4 4
5eblit-glibc-pkg_setup() { 5eblit-glibc-pkg_setup() {
6 # prevent native builds from downgrading ... maybe update to allow people 6 # prevent native builds from downgrading ... maybe update to allow people
7 # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) 7 # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2)
8 if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then 8 if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
45 fi 45 fi
46 fi 46 fi
47 47
48 if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then 48 if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then
49 ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." 49 ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS."
50 ewarn "This will result in a 50% performance penalty, which is probably not what you want." 50 ewarn "This will result in a 50% performance penalty when running with a 32bit"
51 ewarn "hypervisor, which is probably not what you want."
51 fi 52 fi
52 53
53 use hardened && ! gcc-specs-pie && \ 54 use hardened && ! gcc-specs-pie && \
54 ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" 55 ewarn "PIE hardening not applied, as your compiler doesn't default to PIE"
55} 56}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20