Merge pull request #196 from Arkshine/fix/floorf-dependency-linux

Fix missing libm linkage under linux (math functions like floor, etc.)
This commit is contained in:
Vincent Herbet 2015-02-06 21:51:42 +01:00
commit 2dc1982e11

View File

@ -230,7 +230,7 @@ class AMXXConfig(object):
# Platform-specifics
if builder.target_platform == 'linux':
cfg.defines += ['_LINUX', 'POSIX', 'LINUX']
cfg.postlink += ['-ldl']
cfg.postlink += ['-ldl', '-lm']
if cxx.name == 'gcc':
cfg.postlink += ['-static-libgcc']
elif cxx.name == 'clang':