mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user