[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen stable-4.6] stubdom: make GMP aware that it's being cross-compiled
From: patchbot () xen ! org
Date: 2019-06-26 10:12:13
Message-ID: E1hg4uT-00007R-GJ () xenbits ! xenproject ! org
[Download RAW message or body]
commit 7057872c9416eab3e973aab14b15400b68d7bb7d
Author: Wei Liu <wei.liu2@citrix.com>
AuthorDate: Sat Oct 29 18:22:38 2016 +0100
Commit: Ian Jackson <ian.jackson@eu.citrix.com>
CommitDate: Wed May 29 12:04:02 2019 +0100
stubdom: make GMP aware that it's being cross-compiled
Append --build and --host flags to GMP's configure script so that it
knows it is being cross-compiled.
This should fix the issue that GMP doesn't compile with gcc 6, because
configure script won't try to test the host environment anymore.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit 668e4edf92fcf7cb929eed221059a3eeb02722c3)
---
stubdom/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stubdom/Makefile b/stubdom/Makefile
index e1359cfaf7..4bda4c2640 100644
--- a/stubdom/Makefile
+++ b/stubdom/Makefile
@@ -171,7 +171,7 @@ gmp-$(XEN_TARGET_ARCH): gmp-$(GMP_VERSION).tar.bz2 \
$(NEWLIB_STAMPFILE) rm $@ -rf || :
mv gmp-$(GMP_VERSION) $@
#patch -d $@ -p0 < gmp.patch
- cd $@; CPPFLAGS="-isystem $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include \
$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" CC=$(CC) $(GMPEXT) ./configure \
--disable-shared --enable-static --disable-fft --without-readline \
--prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf + cd $@; CPPFLAGS="-isystem \
$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include $(TARGET_CPPFLAGS)" \
CFLAGS="$(TARGET_CFLAGS)" CC=$(CC) $(GMPEXT) ./configure --disable-shared \
--enable-static --disable-fft --without-readline \
--prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf --build=`gcc -dumpmachine` \
--host=$(GNU_TARGET_ARCH)-xen-elf sed -i 's/#define HAVE_OBSTACK_VPRINTF \
1/\/\/#define HAVE_OBSTACK_VPRINTF 1/' $@/config.h touch $@
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic