Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some question about sodium_patches/configure.ac.patch #24

Open
yangshihao-arron opened this issue Nov 22, 2023 · 0 comments
Open

some question about sodium_patches/configure.ac.patch #24

yangshihao-arron opened this issue Nov 22, 2023 · 0 comments

Comments

@yangshihao-arron
Copy link

yangshihao-arron commented Nov 22, 2023

Why is this sodium_patches/configure.ac.patch needed? Why does this patch remove these function checks?

diff --git a/configure.ac b/configure.ac
index 89c9096b..48823e8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -784,11 +784,11 @@ __sync_lock_release(&_sodium_lock);
 dnl Checks for functions and headers
 
 AC_FUNC_ALLOCA
-AS_IF([test "x$EMSCRIPTEN" = "x"],[
-  AC_CHECK_FUNCS([arc4random arc4random_buf])
-  AC_CHECK_FUNCS([mmap mlock madvise mprotect memset_s explicit_bzero nanosleep])
-])
-AC_CHECK_FUNCS([posix_memalign getpid])
+#AS_IF([test "x$EMSCRIPTEN" = "x"],[
+#  AC_CHECK_FUNCS([arc4random arc4random_buf])
+#  AC_CHECK_FUNCS([mmap mlock madvise mprotect memset_s explicit_bzero nanosleep])
+#])
+#AC_CHECK_FUNCS([posix_memalign getpid])
 
 AC_SUBST([LIBTOOL_EXTRA_FLAGS])

Can you explain it to me? I am very eager to get the answer to this question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant