build: use FILE_OFFSET_BITS=64 esp. on 32-bit arch

Co-Authored-By: richardlau - Richard Lau <rlau@redhat.com>
PR-URL: https://github.com/nodejs/node/pull/58090
Refs: https://github.com/nodejs/node/issues/57934
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
RafaelGSSandrichardlau - Richard Lau authored and Michaël Zasso committed 2025-05-16 07:05:38 +02:00
1 parent b33e8d2a71
commit 2e54653d3d
1 file changed
+3
+3
View File
@@ -276,6 +276,9 @@
# Defines these mostly for node-gyp to pickup.
'defines': [
'_GLIBCXX_USE_CXX11_ABI=1',
# This help forks when building Node.js on a 32-bit arch as
# libuv is always compiled with _FILE_OFFSET_BITS=64
'_FILE_OFFSET_BITS=64'
],
# Forcibly disable -Werror. We support a wide range of compilers, it's