mirror of
https://github.com/wownero/RandomX.git
synced 2026-11-29 03:24:07 +01:00
Fix compilation and JIT support on NetBSD:
1. Disable hugepages (not supported). 2. Force W^X (required). 3. When allocating JIT memory, PROT_EXEC must be reserved in order to set the pages executable later.
This commit is contained in:
@@ -35,3 +35,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#else
|
||||
#include "jit_compiler_fallback.hpp"
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
#define RANDOMX_FORCE_SECURE
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user