sys-devel/gsl: also respect AR

Closes: https://bugs.gentoo.org/849245
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-06-02 16:17:20 +02:00
parent 8275bcc923
commit eaaf15c342
2 changed files with 13 additions and 1 deletions

View File

@@ -11,3 +11,15 @@
CCOPTS="-D_REENTRANT -D_GNU_SOURCE -Wall -Wno-unused -fno-strict-aliasing"
# We assume the following standard libraries are all present.
# If your build is failing because of missing libraries then
@@ -334,9 +334,9 @@
AR_CREATE_OPT="c"
fi
if [ "$RANLIB" = "1" ]; then
- COMMAND="ar ${AR_CREATE_OPT}r $LIBNAME.a $OBJECT"
+ COMMAND="${AR} ${AR_CREATE_OPT}r $LIBNAME.a $OBJECT"
else
- COMMAND="ar ${AR_CREATE_OPT}rs $LIBNAME.a $OBJECT"
+ COMMAND="${AR} ${AR_CREATE_OPT}rs $LIBNAME.a $OBJECT"
fi
if [ "$QUIET" = "no" ]; then
if [ "$VERBOSE" = "no" ]; then

View File

@@ -20,7 +20,7 @@ RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )
src_prepare() {
tc-export RANLIB
tc-export AR RANLIB
export CCNAME="$(tc-getCC)"
export CCPLUS="$(tc-getCXX)"
default