mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check This moves the call to `raise` behind a `HAVE_RAISE` autoconf check, in addition to `__wasm__`. This is intended to help porting to other platforms that don't support `raise` (e.g. modern game consoles). * Add autoconf check for `sysconf` Only try to invoke `sysconf` if the target platform supports it, and don't warn about unknown page size if `PAGE_SIZE` was defined. Add an include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`. This is intended to help porting to other platforms that don't support `sysconf` (e.g. modern game consoles) that have a fixed hardware page size. * Don't try to use raise & sysconf in a WASI environment Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
This commit is contained in:
committed by
Frank Denis
co-authored by
Frank Denis
parent
a016aea612
commit
100ccb452d
+5
-5
@@ -1,7 +1,7 @@
|
||||
# Makefile.in generated by automake 1.16.3 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
@@ -160,8 +160,6 @@ am__define_uniq_tagged_files = \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
@@ -218,6 +216,8 @@ CFLAGS_SSE41 = @CFLAGS_SSE41@
|
||||
CFLAGS_SSSE3 = @CFLAGS_SSSE3@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CWFLAGS = @CWFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
@@ -234,6 +234,7 @@ ENABLE_VALGRIND_drd = @ENABLE_VALGRIND_drd@
|
||||
ENABLE_VALGRIND_helgrind = @ENABLE_VALGRIND_helgrind@
|
||||
ENABLE_VALGRIND_memcheck = @ENABLE_VALGRIND_memcheck@
|
||||
ENABLE_VALGRIND_sgcheck = @ENABLE_VALGRIND_sgcheck@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
@@ -497,7 +498,6 @@ cscopelist-am: $(am__tagged_files)
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Makefile.in generated by automake 1.16.3 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
@@ -523,8 +523,6 @@ am__define_uniq_tagged_files = \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__tty_colors_dummy = \
|
||||
mgn= red= grn= lgn= blu= brg= std=; \
|
||||
am__color_tests=no
|
||||
@@ -762,6 +760,8 @@ CFLAGS_SSE41 = @CFLAGS_SSE41@
|
||||
CFLAGS_SSSE3 = @CFLAGS_SSSE3@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CWFLAGS = @CWFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
@@ -778,6 +778,7 @@ ENABLE_VALGRIND_drd = @ENABLE_VALGRIND_drd@
|
||||
ENABLE_VALGRIND_helgrind = @ENABLE_VALGRIND_helgrind@
|
||||
ENABLE_VALGRIND_memcheck = @ENABLE_VALGRIND_memcheck@
|
||||
ENABLE_VALGRIND_sgcheck = @ENABLE_VALGRIND_sgcheck@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
@@ -2458,7 +2459,6 @@ xchacha20.log: xchacha20$(EXEEXT)
|
||||
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
|
||||
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
||||
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
|
||||
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
|
||||
Reference in New Issue
Block a user