/[gentoo-x86]/eclass/java-vm-2.eclass
Gentoo

Diff of /eclass/java-vm-2.eclass

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

Revision 1.45 Revision 1.46
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/eclass/java-vm-2.eclass,v 1.45 2012/07/18 16:54:55 sera Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.46 2012/07/23 19:06:20 sera Exp $
4 4
5# @ECLASS: java-vm-2.eclass 5# @ECLASS: java-vm-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# java@gentoo.org 7# java@gentoo.org
8# @BLURB: Java Virtual Machine eclass 8# @BLURB: Java Virtual Machine eclass
275 && die "${FUNCNAME}: argument needs to be JDK/JRE base directory" 275 && die "${FUNCNAME}: argument needs to be JDK/JRE base directory"
276 276
277 local executables=( "${1}"/bin/* ) 277 local executables=( "${1}"/bin/* )
278 [[ -d "${1}"/jre ]] && executables+=( "${1}"/jre/bin/* ) 278 [[ -d "${1}"/jre ]] && executables+=( "${1}"/jre/bin/* )
279 279
280 # Ensure a PaX header is created.
281 local pax_markings="C"
280 # Usally disabeling MPROTECT is sufficent 282 # Usally disabeling MPROTECT is sufficent.
281 local pax_markings="m" 283 local pax_markings+="m"
282 # On x86 for heap sizes over 700MB disable SEGMEXEC and PAGEEXEC as well. 284 # On x86 for heap sizes over 700MB disable SEGMEXEC and PAGEEXEC as well.
283 use x86 && pax_markings="msp" 285 use x86 && pax_markings+="sp"
284 286
285 pax-mark ${pax_markings} $(list-paxables "${executables[@]}") 287 pax-mark ${pax_markings} $(list-paxables "${executables[@]}")
286} 288}
287 289
288 290

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20