--- lvm2-2.02.39.ebuild.orig 2008-06-28 11:17:12.000000000 +0200 +++ lvm2-2.02.39.ebuild 2008-09-12 17:11:12.000000000 +0200 @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.39.ebuild,v 1.2 2008/06/28 09:17:12 robbat2 Exp $ +# $Header: -inherit eutils multilib +inherit eutils flag-o-matic multilib DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." HOMEPAGE="http://sources.redhat.com/lvm2/" @@ -28,6 +28,7 @@ pkg_setup() { use nolvmstatic && eerror "USE=nolvmstatic has changed to USE=static via package.use" use nolvm1 && eerror "USE=nolvm1 has changed to USE=lvm1 via package.use" + filter-ldflags -Wl,--as-needed --as-needed } src_unpack() { @@ -88,12 +89,16 @@ fi myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin" + if ! use static; then + myconf="${myconf} --libdir=/lib" + fi + econf $(use_enable readline) \ $(use_enable selinux) \ --libdir=/usr/$(get_libdir) \ ${myconf} \ CLDFLAGS="${LDFLAGS}" || die - emake || die "compile problem" + emake LIBS='-ldevmapper-event -ldl -llvm2cmd -lreadline -lrt' || die "compile problem" } src_install() {