From c93995a827eff0dcade1cbfa64c19e5303b3a0f7 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Fri, 6 Feb 2015 21:37:14 +0100 Subject: [PATCH] Fix missing libm linkage (math functions like floor, etc.) --- AMBuildScript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 51e0acc3..cf38a4e2 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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':