Fix missing libm linkage (math functions like floor, etc.)
This commit is contained in:
parent
a51904b13f
commit
c93995a827
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user