Skip to content

Commit

Permalink
update AMBuildScript
Browse files Browse the repository at this point in the history
  • Loading branch information
rejchev committed Aug 12, 2023
1 parent b6d1610 commit 5d94b98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 5d94b98

Please sign in to comment.