Add some missing linux defines.

This commit is contained in:
Ryan Stecker 2025-10-22 22:14:30 -05:00
parent 48f70c50a7
commit fb958033fd

View File

@ -392,7 +392,7 @@ class ExtensionConfig(object):
cxx.cflags += ["/Oy-"]
def configure_linux(self, cxx):
cxx.defines += ["_LINUX", "POSIX"]
cxx.defines += ["LINUX", "_LINUX", "POSIX", "_FILE_OFFSET_BITS=64"]
cxx.linkflags += ["-Wl,--exclude-libs,ALL", "-lm"]
if cxx.vendor == "gcc":
cxx.linkflags += ["-static-libgcc"]