diff options
Diffstat (limited to 'sys-devel/llvm/llvm-3.0_rc3.ebuild')
-rw-r--r-- | sys-devel/llvm/llvm-3.0_rc3.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys-devel/llvm/llvm-3.0_rc3.ebuild b/sys-devel/llvm/llvm-3.0_rc3.ebuild index 15339a5c6460..4114f5673542 100644 --- a/sys-devel/llvm/llvm-3.0_rc3.ebuild +++ b/sys-devel/llvm/llvm-3.0_rc3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.0_rc3.ebuild,v 1.1 2011/11/09 22:54:04 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.0_rc3.ebuild,v 1.2 2011/11/22 13:42:23 voyageur Exp $ EAPI="3" inherit eutils flag-o-matic multilib toolchain-funcs @@ -12,7 +12,7 @@ SRC_URI="http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/${P/_}.src.tar.gz" LICENSE="UoI-NCSA" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="debug +libffi multitarget ocaml test udis86 vim-syntax" +IUSE="debug gold +libffi multitarget ocaml test udis86 vim-syntax" DEPEND="dev-lang/perl >=sys-devel/make-3.79 @@ -20,6 +20,7 @@ DEPEND="dev-lang/perl >=sys-devel/bison-1.875d || ( >=sys-devel/gcc-3.0 >=sys-devel/gcc-apple-4.2.1 ) || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-3.2.3 ) + gold? ( >=sys-devel/binutils-2.22 ) libffi? ( dev-util/pkgconfig virtual/libffi ) ocaml? ( dev-lang/ocaml ) @@ -80,6 +81,10 @@ src_prepare() { sed -e 's,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),$(RPATH) -Wl\,'"${EPREFIX}"/usr/$(get_libdir)/${PN}, \ -e '/OmitFramePointer/s/-fomit-frame-pointer//' \ -i Makefile.rules || die "rpath sed failed" + if use gold; then + sed -e 's,\$(SharedLibDir),'"${EPREFIX}"/usr/$(get_libdir)/${PN}, \ + -i tools/gold/Makefile || die "gold rpath sed failed" + fi epatch "${FILESDIR}"/${PN}-2.6-commandguide-nops.patch epatch "${FILESDIR}"/${PN}-2.9-nodoctargz.patch @@ -102,6 +107,9 @@ src_configure() { CONF_FLAGS="${CONF_FLAGS} --enable-pic" fi + if use gold; then + CONF_FLAGS="${CONF_FLAGS} --with-binutils-include=${EPREFIX}/usr/include/" + fi if use ocaml; then CONF_FLAGS="${CONF_FLAGS} --enable-bindings=ocaml" else |