|
Lines 237-242
src_configure() {
Link Here
|
| 237 |
} |
237 |
} |
| 238 |
|
238 |
|
| 239 |
src_compile() { |
239 |
src_compile() { |
|
|
240 |
local cards |
| 241 |
local card |
| 240 |
if use pgo; then |
242 |
if use pgo; then |
| 241 |
addpredict /root |
243 |
addpredict /root |
| 242 |
addpredict /etc/gconf |
244 |
addpredict /etc/gconf |
|
Lines 244-262
src_compile() {
Link Here
|
| 244 |
gnome2_environment_reset |
246 |
gnome2_environment_reset |
| 245 |
|
247 |
|
| 246 |
# Firefox tries to use dri stuff when it's run, see bug 380283 |
248 |
# Firefox tries to use dri stuff when it's run, see bug 380283 |
| 247 |
shopt -s nullglob |
249 |
cards=/dev/dri/card* |
| 248 |
cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') |
250 |
cards="${cards#/dev/dri/card\*}" |
| 249 |
if test -z "${cards}"; then |
251 |
if [[ ${cards} == "" ]] ; then |
| 250 |
cards=$(echo -n /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') |
252 |
cards="/dev/ati/card* /dev/nvidiactl*" |
| 251 |
if test -n "${cards}"; then |
253 |
cards="${cards#/dev/ati/card\* }" |
|
|
254 |
cards="${cards%/dev/nvidiactl\*}" |
| 255 |
if [[ ${cards} != "" ]] ; then |
| 252 |
# Binary drivers seem to cause access violations anyway, so |
256 |
# Binary drivers seem to cause access violations anyway, so |
| 253 |
# let's use indirect rendering so that the device files aren't |
257 |
# let's use indirect rendering so that the device files aren't |
| 254 |
# touched at all. See bug 394715. |
258 |
# touched at all. See bug 394715. |
| 255 |
export LIBGL_ALWAYS_INDIRECT=1 |
259 |
export LIBGL_ALWAYS_INDIRECT=1 |
| 256 |
fi |
260 |
fi |
| 257 |
fi |
261 |
fi |
| 258 |
shopt -u nullglob |
262 |
for card in cards; do |
| 259 |
addpredict "${cards}" |
263 |
addpredict ${card} |
|
|
264 |
done |
| 260 |
|
265 |
|
| 261 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
266 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
| 262 |
virtx emake -f client.mk profiledbuild || die "virtx emake failed" |
267 |
virtx emake -f client.mk profiledbuild || die "virtx emake failed" |