From 4007ec8cf8da49d73126b874dccecebe8452a100 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings <nshastings@gmail.com> Date: Tue, 5 Dec 2017 20:44:53 -0500 Subject: [PATCH] Temp fix for load issues on Linux. --- AMBuildScript | 2 +- core/AMBuilder | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 1980c87d..e067eb06 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -299,7 +299,7 @@ class SMConfig(object): def configure_linux(self, cxx): cxx.defines += ['_LINUX', 'POSIX', '_FILE_OFFSET_BITS=64'] - cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm'] + cxx.linkflags += ['-lm'] if cxx.family == 'gcc': cxx.linkflags += ['-static-libgcc'] elif cxx.family == 'clang': diff --git a/core/AMBuilder b/core/AMBuilder index 09bca74c..f96b00fd 100644 --- a/core/AMBuilder +++ b/core/AMBuilder @@ -66,6 +66,7 @@ for sdk_name in SM.sdks: if sdk.name == 'csgo': if builder.target.platform == 'linux': lib_path = os.path.join(sdk.path, 'lib', 'linux32', 'release', 'libprotobuf.a') + compiler.linkflags += ['-Wl,--exclude-libs=libprotobuf.a'] elif builder.target.platform == 'mac': lib_path = os.path.join(sdk.path, 'lib', 'osx32', 'release', 'libprotobuf.a') elif builder.target.platform == 'windows':