sys-cluster/galera: respect AR

Closes: https://bugs.gentoo.org/721506
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
Thomas Deutschmann
2020-05-23 23:42:54 +02:00
parent eb9b0c91d0
commit 1ade2f6b70
2 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
--- a/SConstruct
+++ b/SConstruct
@@ -213,6 +213,9 @@ if cxx != 'default':
link = os.getenv('LINK', 'default')
if link != 'default':
env.Replace(LINK = link)
+ar = os.getenv('AR', 'default')
+if ar != 'default':
+ env.Replace(AR = ar)
# Get compiler name/version, CXX may be set to "c++" which may be clang or gcc
cc_version = str(read_first_line(env['CC'].split() + ['--version']))

View File

@@ -33,7 +33,10 @@ DEPEND="${BDEPEND}
RDEPEND="${CDEPEND}"
# Respect {C,LD}FLAGS.
PATCHES=( "${FILESDIR}/galera-4.1-strip-extra-cflags.patch" )
PATCHES=(
"${FILESDIR}"/${PN}-4.1-strip-extra-cflags.patch
"${FILESDIR}"/${PN}-26.4.4-respect-AR.patch
)
src_prepare() {
default
@@ -48,7 +51,7 @@ src_prepare() {
}
src_configure() {
tc-export CC CXX
tc-export AR CC CXX
# Uses hardware specific code that seems to depend on SSE4.2
if use cpu_flags_x86_sse4_2 ; then
append-cflags -msse4.2