sys-cluster/libi: respect AR

Bug: https://bugs.gentoo.org/836798
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri 2022-04-05 11:29:16 +02:00
parent ce98255fdb
commit 510e90ff9d
No known key found for this signature in database
GPG Key ID: 4E4140121372C837
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,20 @@
--- a/conf/configure.in
+++ b/conf/configure.in
@@ -66,7 +66,6 @@
AC_PROG_YACC
AC_PROG_LN_S
-AC_PATH_PROG(AR, ar)
ARFLAGS="crv"
AC_SUBST(AR)
AC_SUBST(ARFLAGS)
@@ -87,9 +86,6 @@
STDCFLAGS="-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS"
CXXFLAGS="$CXXFLAGS -fPIC $STDCFLAGS"
-dnl === Ignore user-requested debug/optimization levels
-CXXFLAGS=`echo $CXXFLAGS | sed 's/-g //; s/-O //; s/-O1 //; s/-O2 //; s/-O3 //'`
-
SOFLAGS="$SOFLAGS -fPIC -shared -rdynamic"
AC_SUBST(SOFLAGS)

View File

@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit autotools toolchain-funcs
COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
@ -30,11 +30,20 @@ PATCHES=(
"${FILESDIR}/${PN}-create-libdir.patch"
"${FILESDIR}/${PN}-link-launchmon.patch"
"${FILESDIR}/${PN}-shared-library.patch"
"${FILESDIR}/${P}-respect-variables.patch"
)
src_configure() {
src_prepare() {
tc-export AR
default
pushd conf || die
mv configure.{in,ac} || die
eautoreconf
popd || die
mv conf/configure configure || die
}
src_configure() {
local myconf=(
--enable-shared
--with-launchmon="${EPREFIX}/usr"