From a8050d0da7951667daee2590fd8e9275ee1a8376 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sat, 11 Nov 2023 12:26:12 -0500 Subject: [PATCH] Fix MM:S no longer being to load on games built with old, incompatible libm (fixes #146) --- AMBuildScript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 3ef615ed..7faa029d 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -284,6 +284,12 @@ class MMSConfig(object): def Library(self, cxx, name): binary = cxx.Library(name) self.AddVersioning(binary) + + if binary.compiler.like('gcc'): + binary.sources += [ + os.path.join(builder.sourcePath, 'third_party', 'amtl', 'compat', 'stdcxx.cpp') + ] + return binary def Program(self, compiler, name):