1 |
Whenever package doesn't have static-libs available and selected, |
2 |
if configure script has static-libs selectable, explicitly disable |
3 |
|
4 |
Bug: https://bugs.gentoo.org/695878 |
5 |
--- |
6 |
eclass/mate.eclass | 12 +++++++++++- |
7 |
1 file changed, 11 insertions(+), 1 deletion(-) |
8 |
|
9 |
diff --git a/eclass/mate.eclass b/eclass/mate.eclass |
10 |
index db511aedb1f1..d6718872c05d 100644 |
11 |
--- a/eclass/mate.eclass |
12 |
+++ b/eclass/mate.eclass |
13 |
@@ -115,7 +115,17 @@ mate_src_prepare() { |
14 |
# MATE specific configure handling |
15 |
# Stub to gnome2_src_configure() |
16 |
mate_src_configure() { |
17 |
- gnome2_src_configure "$@" |
18 |
+ |
19 |
+ local mateconf=() |
20 |
+ |
21 |
+ # Pass --disable-static whenever possible |
22 |
+ if ! use_if_iuse static-libs; then |
23 |
+ if grep -q "enable-static" "${ECONF_SOURCE:-.}"/configure; then |
24 |
+ mateconf+=( --disable-static ) |
25 |
+ fi |
26 |
+ fi |
27 |
+ |
28 |
+ gnome2_src_configure ${mateconf[@]} "$@" |
29 |
} |
30 |
|
31 |
# @FUNCTION: mate_src_install |
32 |
-- |
33 |
2.26.2 |