diff mbox series

nettle: build on latest macos xcode

Message ID 20201118085017.72198-1-ldir@darbyshire-bryant.me.uk
State Accepted
Headers show
Series nettle: build on latest macos xcode | expand

Commit Message

Kevin Darbyshire-Bryant Nov. 18, 2020, 8:50 a.m. UTC
compiler warns that exit() isn't defined so the checks for build system
compiler fail.  include <stdlib.h> to define exit()

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
---

This could do with checking it doesn't break builds under Linux


 .../libs/nettle/patches/100-portability.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/libs/nettle/patches/100-portability.patch
diff mbox series

Patch

diff --git a/package/libs/nettle/patches/100-portability.patch b/package/libs/nettle/patches/100-portability.patch
new file mode 100644
index 0000000000..2849e53eab
--- /dev/null
+++ b/package/libs/nettle/patches/100-portability.patch
@@ -0,0 +1,34 @@ 
+--- a/configure
++++ b/configure
+@@ -4635,6 +4635,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4667,6 +4668,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4703,6 +4705,7 @@ $as_echo_n "checking build system compil
+ # remove anything that might look like compiler output to our "||" expression
+ rm -f conftest* a.out b.out a.exe a_out.exe
+ cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -4753,6 +4756,7 @@ else
+   gmp_cv_prog_exeext_for_build="$EXEEXT"
+ else
+   cat >conftest.c <<EOF
++#include <stdlib.h>
+ int
+ main ()
+ {