summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-04-20 12:27:52 +0000
committerMike Frysinger <vapier@gentoo.org>2008-04-20 12:27:52 +0000
commit326604e17facdbe0c0876389684d4cbc368035a5 (patch)
treeb6d4ed06721e8ee60c51075729a3a20094742f86 /media-libs/imlib2
parentamd64 stable - 218192 (diff)
downloadgentoo-2-326604e17facdbe0c0876389684d4cbc368035a5.tar.gz
gentoo-2-326604e17facdbe0c0876389684d4cbc368035a5.tar.bz2
gentoo-2-326604e17facdbe0c0876389684d4cbc368035a5.zip
only enable visibility for gcc-4+ #218549
(Portage version: 2.2_pre5)
Diffstat (limited to 'media-libs/imlib2')
-rw-r--r--media-libs/imlib2/imlib2-1.4.1.000.ebuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/media-libs/imlib2/imlib2-1.4.1.000.ebuild b/media-libs/imlib2/imlib2-1.4.1.000.ebuild
index 38ef99df8715..e8e0df641436 100644
--- a/media-libs/imlib2/imlib2-1.4.1.000.ebuild
+++ b/media-libs/imlib2/imlib2-1.4.1.000.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/imlib2/imlib2-1.4.1.000.ebuild,v 1.1 2008/04/19 21:05:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/imlib2/imlib2-1.4.1.000.ebuild,v 1.2 2008/04/20 12:27:52 vapier Exp $
inherit enlightenment toolchain-funcs
@@ -24,15 +24,16 @@ DEPEND="=media-libs/freetype-2*
src_compile() {
# imlib2 has diff configure options for x86/amd64 mmx
- local mymmx=""
+ local myconf=""
if [[ $(tc-arch) == "amd64" ]] ; then
- mymmx="$(use_enable mmx amd64) --disable-mmx"
+ myconf="$(use_enable mmx amd64) --disable-mmx"
else
- mymmx="--disable-amd64 $(use_enable mmx)"
+ myconf="--disable-amd64 $(use_enable mmx)"
fi
+ [[ $(gcc-major-version) -ge 4 ]] && myconf="${myconf} --enable-visibility-hiding"
+
export MY_ECONF="
- --enable-visibility-hiding
$(use_with X x) \
$(use_with jpeg) \
$(use_with png) \
@@ -41,7 +42,7 @@ src_compile() {
$(use_with zlib) \
$(use_with bzip2) \
$(use_with mp3 id3) \
- ${mymmx} \
+ ${myconf} \
"
enlightenment_src_compile
}