qmail.eclass: honor toolchain settings for ar and ranlib
authorRolf Eike Beer <eike@sf-mail.de>
Wed, 7 Aug 2019 10:08:54 +0000 (12:08 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Sun, 18 Aug 2019 14:57:21 +0000 (17:57 +0300)
Closes: https://bugs.gentoo.org/471436
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Closes: https://github.com/gentoo/gentoo/pull/12631
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
eclass/qmail.eclass

index 552a37d55871629a58355b1b32d5b47618360f98..150b6c00aab327e8ad860a8e575f07ce0a11347d 100644 (file)
@@ -102,6 +102,7 @@ qmail_set_cc() {
 
        echo "${cc} ${CFLAGS} ${CPPFLAGS}"  > ./conf-cc || die 'Patching conf-cc failed.'
        echo "${ld} ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.'
+       sed -e "s#'ar #'$(tc-getAR) #" -e "s#'ranlib #'$(tc-getRANLIB) #" -i make-makelib.sh
 }
 
 # @FUNCTION: qmail_create_groups