Discussion:
[yocto] [meta-mono][PATCH] mono-4.xx: Remove --disable-static from EXTRA_OECONF
Fabio Berton
2016-05-12 14:10:29 UTC
Permalink
As of commit OE-Core:773c9e18071d71454473dd81aff911104a2e9bc6
EXTRA_OECONF is appended with the option --disable-static on
DISABLE_STATIC variable and this cause the error:
__
/
| mono_boehm-main.o: In function `main':
| x86_64-linux/mono-native/4.4.0.122-r0/mono-4.4.0/mono/mini/main.c:51:
| undefined reference to `mono_build_date'
| collect2: error: ld returned 1 exit status
| Makefile:1390: recipe for target 'mono-boehm' failed
\__

There's a bug with this issue open here:
https://bugzilla.xamarin.com/show_bug.cgi?id=33081

Signed-off-by: Fabio Berton <***@ossystems.com.br>
---
recipes-mono/mono/mono-4.xx.inc | 3 +++
1 file changed, 3 insertions(+)

diff --git a/recipes-mono/mono/mono-4.xx.inc b/recipes-mono/mono/mono-4.xx.inc
index 855c857..6d7c023 100644
--- a/recipes-mono/mono/mono-4.xx.inc
+++ b/recipes-mono/mono/mono-4.xx.inc
@@ -34,6 +34,9 @@ inherit autotools-brokensep
inherit pkgconfig
inherit gettext

+# avoids build breaks when using no-static-libs.inc
+DISABLE_STATIC = ""
+
EXTRA_OECONF += " mono_cv_uscore=no --with-sigaltstack=no --with-mcs-docs=no "

do_configure_prepend() {
--
2.1.4

--
Fabio Berton
2016-06-27 18:41:58 UTC
Permalink
Any update on this?

Without this patch I can't build mono-4.4.0.148.

On Thu, May 12, 2016 at 11:10 AM, Fabio Berton <
Post by Fabio Berton
As of commit OE-Core:773c9e18071d71454473dd81aff911104a2e9bc6
EXTRA_OECONF is appended with the option --disable-static on
__
/
| undefined reference to `mono_build_date'
| collect2: error: ld returned 1 exit status
| Makefile:1390: recipe for target 'mono-boehm' failed
\__
https://bugzilla.xamarin.com/show_bug.cgi?id=33081
---
recipes-mono/mono/mono-4.xx.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-mono/mono/mono-4.xx.inc
b/recipes-mono/mono/mono-4.xx.inc
index 855c857..6d7c023 100644
--- a/recipes-mono/mono/mono-4.xx.inc
+++ b/recipes-mono/mono/mono-4.xx.inc
@@ -34,6 +34,9 @@ inherit autotools-brokensep
inherit pkgconfig
inherit gettext
+# avoids build breaks when using no-static-libs.inc
+DISABLE_STATIC = ""
+
EXTRA_OECONF += " mono_cv_uscore=no --with-sigaltstack=no
--with-mcs-docs=no "
do_configure_prepend() {
--
2.1.4
Alex J Lennon
2016-07-26 15:34:13 UTC
Permalink
Post by Fabio Berton
Any update on this?
Without this patch I can't build mono-4.4.0.148.
Hi Fabio - I've been otherwise occupied and only just seen this. I will
take a look at the patch.

Many thanks, Alex
Alex J Lennon
2016-11-30 14:10:49 UTC
Permalink
Post by Fabio Berton
Any update on this?
Applied, thanks Fabio

Loading...