00129608c3
Mono should always be compiled with --enable-static, this patch forces --enable-static also in case of shared only libraries. Fixes: http://autobuild.buildroot.net/results/e739d64011fb6a24ccbef136d75944f3bd2eba03/ http://autobuild.buildroot.net/results/7ebe6909da859507639f57da2d4fee46efc062d4/ http://autobuild.buildroot.net/results/03c2243080b026b0c6f4bb64e7dc8dc359f0c8c2/ http://autobuild.buildroot.net/results/406bf830ae84cf9ce4afd5a4ddc265197df42b44/ http://autobuild.buildroot.net/results/894a3e0627244b5e1980c3840629b4627999d252/ http://autobuild.buildroot.net/results/2dad2609834564060dc090919c128b45e289102e/ http://autobuild.buildroot.net/results/46de32cbe68b614763a72303490515f80cfe5bfd/ http://autobuild.buildroot.net/results/b167d2660ca37b896ceb8f1372d88eda6d6397d7/ http://autobuild.buildroot.net/results/17b6aee3d0aaf425412f9f5d89de665de9efedb8/ http://autobuild.buildroot.net/results/af9e5203299819085441fb6ee27e027d58f220b3/ http://autobuild.buildroot.net/results/138e5bd9bd0e2ad6de13278b446d1a48a9b64b17/ http://autobuild.buildroot.net/results/b77d52aaa5face5d5b8afe39f9a32a51b1df500f/ Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
#############################################################
|
|
#
|
|
# mono
|
|
#
|
|
#############################################################
|
|
|
|
MONO_VERSION = 3.10.0
|
|
MONO_SITE = http://download.mono-project.com/sources/mono/
|
|
MONO_SOURCE = mono-$(MONO_VERSION).tar.bz2
|
|
MONO_LICENSE = GPLv2 or MIT (compiler, tools), LGPLv2 (runtime libs), MIT (class libs) or commercial
|
|
MONO_LICENSE_FILES = LICENSE COPYING.LIB mcs/COPYING.LIB mcs/COPYING \
|
|
eglib/COPYING external/Newtonsoft.Json/Tools/7-zip/copying.txt
|
|
MONO_INSTALL_STAGING = YES
|
|
|
|
## Mono native
|
|
|
|
# patching configure.ac
|
|
MONO_AUTORECONF = YES
|
|
|
|
# Disable managed code (mcs folder) from building
|
|
MONO_CONF_OPTS = --disable-gtk-doc \
|
|
--with-mcs-docs=no \
|
|
--with-moonlight=no \
|
|
--disable-libraries \
|
|
--with-ikvm-native=no \
|
|
--enable-minimal=aot,profiler,debug \
|
|
--disable-mcs-build \
|
|
--enable-static
|
|
|
|
# The libraries have been built by the host-mono build. Since they are
|
|
# architecture-independent, we simply copy them to the target.
|
|
define MONO_INSTALL_LIBS
|
|
rsync -av --exclude=*.so --exclude=*.mdb \
|
|
$(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
|
|
rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
|
|
endef
|
|
|
|
MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
|
|
|
|
MONO_DEPENDENCIES += host-mono
|
|
|
|
## Mono managed
|
|
|
|
HOST_MONO_CONF_OPTS = --disable-gtk-doc \
|
|
--with-mcs-docs=no \
|
|
--with-moonlight=no \
|
|
--disable-libraries \
|
|
--with-ikvm-native=no \
|
|
--enable-minimal=aot,profiler,debug \
|
|
--enable-static
|
|
|
|
# These options refer to the target mono, not the host. We use the host
|
|
# only to compile libraries, then we copy them to the target.
|
|
HOST_MONO_CONF_OPTS += \
|
|
--with-profile2=$(if $(BR2_PACKAGE_MONO_20),yes,no) \
|
|
--with-profile4=$(if $(BR2_PACKAGE_MONO_40),yes,no) \
|
|
--with-profile4_5=$(if $(BR2_PACKAGE_MONO_45),yes,no)
|
|
|
|
# ensure monolite is used
|
|
HOST_MONO_MAKE_OPTS += EXTERNAL_MCS=false
|
|
|
|
HOST_MONO_DEPENDENCIES = host-monolite host-gettext
|
|
|
|
define HOST_MONO_SETUP_MONOLITE
|
|
rm -rf $(@D)/mcs/class/lib/monolite
|
|
(cd $(@D)/mcs/class/lib; ln -s $(HOST_DIR)/usr/lib/monolite monolite)
|
|
endef
|
|
|
|
HOST_MONO_POST_CONFIGURE_HOOKS += HOST_MONO_SETUP_MONOLITE
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|