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:
RafaelGSS 2025-04-30 16:55:54 -03:00
parent 4bfcad1ac5
commit 74c8358fa7
No known key found for this signature in database
GPG Key ID: 8BEAB4DFCF555EF4

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