Fix missing libm linkage (math functions like floor, etc.)

This commit is contained in:
Arkshine 2015-02-06 21:37:14 +01:00
parent a51904b13f
commit c93995a827

View File

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