1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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/xorg-2.eclass,v 1.14 2010/10/23 20:53:13 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.15 2010/10/28 11:43:33 scarabeus Exp $ |
4 | # |
4 | # |
5 | # @ECLASS: xorg-2.eclass |
5 | # @ECLASS: xorg-2.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # x11@gentoo.org |
7 | # x11@gentoo.org |
8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
… | |
… | |
255 | xorg-2_flags_setup() { |
255 | xorg-2_flags_setup() { |
256 | # Win32 require special define |
256 | # Win32 require special define |
257 | [[ ${CHOST} == *-winnt* ]] && append-cppflags -DWIN32 -D__STDC__ |
257 | [[ ${CHOST} == *-winnt* ]] && append-cppflags -DWIN32 -D__STDC__ |
258 | # hardened ldflags |
258 | # hardened ldflags |
259 | [[ ${PN} = xorg-server || -n ${DRIVER} ]] && append-ldflags -Wl,-z,lazy |
259 | [[ ${PN} = xorg-server || -n ${DRIVER} ]] && append-ldflags -Wl,-z,lazy |
|
|
260 | |
|
|
261 | # Quite few packages fail on runtime without these: |
|
|
262 | filter-flags -Wl,-Bdirect |
|
|
263 | filter-ldflags -Bdirect |
|
|
264 | filter-ldflags -Wl,-Bdirect |
260 | } |
265 | } |
261 | |
266 | |
262 | # @FUNCTION: xorg-2_src_configure |
267 | # @FUNCTION: xorg-2_src_configure |
263 | # @DESCRIPTION: |
268 | # @DESCRIPTION: |
264 | # Perform any necessary pre-configuration steps, then run configure |
269 | # Perform any necessary pre-configuration steps, then run configure |