Created attachment 253859 [details] patch This allows building on systems with kern.elf64.allow_wx=0. This patch should be backported to older node versions.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=bf4c86a9e27395fdfce99b91d8cc1a0f12c1b3ab commit bf4c86a9e27395fdfce99b91d8cc1a0f12c1b3ab Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-10-07 14:58:07 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-10-07 14:58:46 +0000 www/node{18,20,22}: Add JIT option PR: 281746 www/node18/Makefile | 5 ++++- www/node20/Makefile | 5 ++++- www/node22/Makefile | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-)
Thanks for the patch. I made minor modification to JIT_DESC to avoid ambiguity. Committed and applied to all node ports.
Thanks for your work on this! I'm pretty ignorant of node (it's just a dependency of something for me). Does this option affect the end result, or only the build machine? From this: https://v8.dev/blog/jitless I see there can be a big performance hit. I don't want this in my actual web app. I just want the build machine itself to be able to run with w^x.
(In reply to Sean McBride from comment #3) IMHO, if you care about the performance, you should enable WX while building this port.
(In reply to Po-Chuan Hsieh from comment #4) See also bug #276806. I've tried USES=elfctl but no luck.