| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/x-modular.eclass,v 1.64 2006/06/30 07:34:11 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.65 2006/06/30 07:55:53 spyderous Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is designed to reduce code duplication in the modularized X11 |
7 | # This eclass is designed to reduce code duplication in the modularized X11 |
| 8 | # ebuilds. |
8 | # ebuilds. |
| … | |
… | |
| 169 | # Provides virtual/x11 for temporary use until packages are ported |
169 | # Provides virtual/x11 for temporary use until packages are ported |
| 170 | # x11-base/x11-env" |
170 | # x11-base/x11-env" |
| 171 | |
171 | |
| 172 | x-modular_specs_check() { |
172 | x-modular_specs_check() { |
| 173 | if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then |
173 | if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then |
|
|
174 | if gcc-specs-now; then |
|
|
175 | msg="${PN} does not work with hardened gcc specs. Switch to vanilla gcc specs to emerge ${PN}." |
|
|
176 | eerror "$msg" |
|
|
177 | die "$msg" |
|
|
178 | fi |
|
|
179 | |
| 174 | append-ldflags -Wl,-z,lazy |
180 | append-ldflags -Wl,-z,lazy |
| 175 | # (#116698) breaks loading |
181 | # (#116698) breaks loading |
| 176 | filter-ldflags -Wl,-z,now |
182 | filter-ldflags -Wl,-z,now |
| 177 | fi |
183 | fi |
| 178 | } |
184 | } |