mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
Proper fix was implemented earlier via removing AX_CC_MAXOPT from configure.ac Reported-by: Agostino Sarubbo <ago@gentoo.org> Closes: https://bugs.gentoo.org/816330 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
56 lines
1.1 KiB
Bash
56 lines
1.1 KiB
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="A compressed bitset with supporting data structures and algorithms"
|
|
HOMEPAGE="https://github.com/chriso/bitset"
|
|
SRC_URI="https://github.com/chriso/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
IUSE="jemalloc static-libs tcmalloc"
|
|
KEYWORDS="amd64 ~arm x86"
|
|
|
|
RDEPEND="
|
|
tcmalloc? ( dev-util/google-perftools:= )
|
|
jemalloc? ( >=dev-libs/jemalloc-3.2 )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
REQUIRED_USE="?? ( jemalloc tcmalloc )"
|
|
|
|
DOCS=( README.md )
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Disable aggressive optimization, which does not respect CFLAGS
|
|
# with new autoconf, bug #815637
|
|
sed -i -e '/AX_CC_MAXOPT/d' configure.ac || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local tcmalloc_lib_name='tcmalloc'
|
|
|
|
has_version dev-util/google-perftools[minimal] && tcmalloc_lib_name='tcmalloc_minimal'
|
|
|
|
local myeconfargs=(
|
|
$(use_with jemalloc) \
|
|
$(use_with tcmalloc) \
|
|
$(use_with tcmalloc tcmalloc-lib "${tcmalloc_lib_name}")
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|