LLVM enablement
(cherry picked from commit 3f5066064e5cb01b3df1ff1e4ac5bfdec12a8046) Former-commit-id: c94c6bc341be9ecdec2ff079a51cdc6ba6a269e8
This commit is contained in:
parent
a9b666be33
commit
b404d87606
2
debian/control.REMOVED.git-id
vendored
2
debian/control.REMOVED.git-id
vendored
@ -1 +1 @@
|
||||
0c480f455817d27441cca9ab0810940805454f9b
|
||||
83515ca31648933a918d98fda9525f5791a13553
|
1
debian/mono-llvm-support.install
vendored
Normal file
1
debian/mono-llvm-support.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
/usr/lib/libmono-llvm.so.0*
|
14
debian/rules
vendored
14
debian/rules
vendored
@ -52,23 +52,28 @@ ifeq ($(DEB_HOST_ARCH), arm64)
|
||||
MONO_BOEHM_TEST = true
|
||||
CONF_FLAGS += --disable-boehm
|
||||
BTLS_ARCH = true
|
||||
LLVM_ARCH = true
|
||||
SKIP_LIBGC = true
|
||||
endif
|
||||
|
||||
ifeq ($(DEB_HOST_ARCH), i386)
|
||||
BTLS_ARCH = true
|
||||
LLVM_ARCH = true
|
||||
endif
|
||||
|
||||
ifeq ($(DEB_HOST_ARCH), armhf)
|
||||
BTLS_ARCH = true
|
||||
LLVM_ARCH = true
|
||||
endif
|
||||
|
||||
ifeq ($(DEB_HOST_ARCH), amd64)
|
||||
BTLS_ARCH = true
|
||||
LLVM_ARCH = true
|
||||
endif
|
||||
|
||||
ifeq ($(DEB_HOST_ARCH), ppc64el)
|
||||
CONF_FLAGS += --with-csc=mcs
|
||||
BTLS_ARCH = true
|
||||
endif
|
||||
|
||||
ifneq (,$(wildcard /usr/bin/gcc-4.7))
|
||||
@ -79,10 +84,15 @@ ifneq (,$(wildcard /usr/lib/gcc-mozilla/bin/gcc))
|
||||
GCC := CC=/usr/lib/gcc-mozilla/bin/gcc CXX=/usr/lib/gcc-mozilla/bin/g++
|
||||
endif
|
||||
|
||||
ifdef LLVM_ARCH
|
||||
CONF_FLAGS += --enable-loadedllvm
|
||||
endif
|
||||
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
CONFIGURE = CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
|
||||
PATH="/usr/lib/mono/llvm/bin:$PATH" \
|
||||
$(GCC) ./configure $(CONF_FLAGS) --prefix=/usr \
|
||||
--mandir=\$${prefix}/share/man \
|
||||
--infodir=\$${prefix}/share/info --sysconfdir=/etc \
|
||||
@ -324,6 +334,10 @@ ifndef SKIP_LIBGC
|
||||
endif
|
||||
ifdef BTLS_ARCH
|
||||
install -D -m 644 debian/tmp/usr/lib/libmono-btls-shared.so debian/mono-runtime-common/usr/lib/
|
||||
endif
|
||||
ifdef LLVM_ARCH
|
||||
install -D -m 644 debian/tmp/usr/lib/libmono-llvm.so debian/mono-runtime-common/usr/lib/
|
||||
install -D -m 644 debian/tmp/usr/lib/libmono-llvm.a debian/mono-runtime-common/usr/lib/
|
||||
endif
|
||||
dh_link -s
|
||||
dh_installchangelogs -s -X ChangeLog
|
||||
|
Loading…
x
Reference in New Issue
Block a user