summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2022-04-26 15:02:08 -0700
committerSam James <sam@gentoo.org>2022-04-27 02:36:10 +0100
commitba06b6b628c51a87ef82430dad2f642b669c557b (patch)
tree6ccc13222f9e56a5d0f3d1e8ef15b67ca8095a53 /sys-libs/gdbm
parentdev-libs/elfutils: add verify-sig (diff)
downloadgentoo-ba06b6b628c51a87ef82430dad2f642b669c557b.tar.gz
gentoo-ba06b6b628c51a87ef82430dad2f642b669c557b.tar.bz2
gentoo-ba06b6b628c51a87ef82430dad2f642b669c557b.zip
sys-libs/gdbm: call elibtoolize in src_prepare
gdbm's default libtool file causes to link with /usr/lib directory i.e. -L/usr/lib which causes linker (LLD) to complain when cross-compiling building for arm32. Call elibtoolize in src_prepare to regen files to avoid the linker errors. Signed-off-by: Manoj Gupta <manojgupta@google.com> Closes: https://github.com/gentoo/gentoo/pull/25219 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/gdbm')
-rw-r--r--sys-libs/gdbm/gdbm-1.23.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys-libs/gdbm/gdbm-1.23.ebuild b/sys-libs/gdbm/gdbm-1.23.ebuild
index 634e8f355c15..3f48806dc843 100644
--- a/sys-libs/gdbm/gdbm-1.23.ebuild
+++ b/sys-libs/gdbm/gdbm-1.23.ebuild
@@ -4,7 +4,7 @@
EAPI=7
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gdbm.asc
-inherit multilib-minimal verify-sig
+inherit autotools multilib-minimal verify-sig
DESCRIPTION="Standard GNU database libraries"
HOMEPAGE="https://www.gnu.org/software/gdbm/"
@@ -20,6 +20,13 @@ DEPEND="readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gdbm )"
+src_prepare() {
+ default
+ # gdbm ships with very old libtool files, regen to avoid
+ # errors when cross-compiling.
+ elibtoolize
+}
+
multilib_src_configure() {
# gdbm doesn't appear to use either of these libraries
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no