Skip to content

Commit f8e68f6

Browse files
author
Lawrence Nahum
committed
Re-apply unmerged secp-zkp patch
commit 99de4ca Author: Jon Griffiths <jon_p_griffiths@yahoo.com> Date: Thu Jul 13 10:55:37 2017 +1200 secp: Don't use the OSX native JNI headers when cross compiling
1 parent 6e55fdf commit f8e68f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/secp256k1/build-aux/m4/ax_jni_include_dir.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ else
6565
_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[[^/]]*$::'`
6666
fi
6767
68+
if test x$cross_compiling != xyes; then
6869
case "$host_os" in
6970
darwin*) # Apple Java headers are inside the Xcode bundle.
7071
macos_version=$(sw_vers -productVersion | sed -n -e 's/^@<:@0-9@:>@*.\(@<:@0-9@:>@*\).@<:@0-9@:>@*/\1/p')
@@ -78,6 +79,7 @@ case "$host_os" in
7879
;;
7980
*) _JINC="$_JTOPDIR/include";;
8081
esac
82+
fi
8183
_AS_ECHO_LOG([_JTOPDIR=$_JTOPDIR])
8284
_AS_ECHO_LOG([_JINC=$_JINC])
8385

0 commit comments

Comments
 (0)