From 5d94b987665a80d6d11ef7df6f8cff9b910ac503 Mon Sep 17 00:00:00 2001 From: rejchev Date: Sun, 13 Aug 2023 02:09:46 +0500 Subject: [PATCH] update AMBuildScript --- AMBuildScript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index ffa0b53..6c2c238 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -210,12 +210,13 @@ class ExtensionConfig(object): cxx.cflags += ['/Oy-'] def configure_linux(self, cxx): - cxx.defines += ['_LINUX', 'POSIX'] + cxx.defines += ['_LINUX', 'POSIX', '_FILE_OFFSET_BITS=64'] cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm'] if cxx.family == 'gcc': cxx.linkflags += ['-static-libgcc'] elif cxx.family == 'clang': - cxx.linkflags += ['-lgcc_eh'] + cxx.linkflags += ['-lgcc_eh'] + cxx.linkflags += ['-static-libstdc++'] def configure_mac(self, cxx): cxx.defines += ['OSX', '_OSX', 'POSIX']