[vlc-commits] contrib: nettle: fix build with CC_FOR_BUILD set to recent clang
David Fuhrmann
git at videolan.org
Wed Dec 9 16:33:18 UTC 2020
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Nov 30 09:21:33 2020 +0100| [c8abac44747cfe6bbf0b8399373f78ea6125367c] | committer: Felix Paul Kühne
contrib: nettle: fix build with CC_FOR_BUILD set to recent clang
See upstream https://git.lysator.liu.se/nettle/nettle/-/merge_requests/9/diffs
Signed-off-by: Felix Paul Kühne <felix at feepk.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8abac44747cfe6bbf0b8399373f78ea6125367c
---
contrib/src/nettle/fix-cc-for-build.patch | 34 +++++++++++++++++++++++++++++++
contrib/src/nettle/rules.mak | 3 ++-
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/contrib/src/nettle/fix-cc-for-build.patch b/contrib/src/nettle/fix-cc-for-build.patch
new file mode 100644
index 0000000000..37826f7820
--- /dev/null
+++ b/contrib/src/nettle/fix-cc-for-build.patch
@@ -0,0 +1,34 @@
+From 91df68136ad1562cf9217599254706d8cfa970ea Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud at savoirfairelinux.com>
+Date: Sun, 20 Sep 2020 19:35:54 +0200
+Subject: [PATCH] m4: follow GMP changes for GMP_PROG_CC_FOR_BUILD
+
+---
+ aclocal.m4 | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 513b2df4..e81e0351 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -369,7 +369,7 @@ cat >conftest.c <<EOF
+ int
+ main ()
+ {
+- exit(0);
++ return 0;
+ }
+ EOF
+ gmp_compile="$1 conftest.c"
+@@ -410,7 +410,7 @@ else
+ int
+ main ()
+ {
+- exit (0);
++ return 0;
+ }
+ EOF
+ for i in .exe ,ff8 ""; do
+--
+GitLab
+
diff --git a/contrib/src/nettle/rules.mak b/contrib/src/nettle/rules.mak
index 1ae80e84f6..2605548c80 100644
--- a/contrib/src/nettle/rules.mak
+++ b/contrib/src/nettle/rules.mak
@@ -21,7 +21,7 @@ $(TARBALLS)/nettle-$(NETTLE_VERSION).tar.gz:
nettle: nettle-$(NETTLE_VERSION).tar.gz .sum-nettle
$(UNPACK)
- $(UPDATE_AUTOCONFIG)
+ $(APPLY) $(SRC)/nettle/fix-cc-for-build.patch
$(MOVE)
DEPS_nettle = gmp $(DEPS_gmp)
@@ -31,6 +31,7 @@ DEPS_nettle = gmp $(DEPS_gmp)
ifndef GPL
$(REQUIRE_GNUV3)
endif
+ $(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(NETTLE_CONF)
cd $< && $(MAKE) install
touch $@
More information about the vlc-commits
mailing list