diff --git a/AMBuildScript b/AMBuildScript index 56faedafb..e597b1d2e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -534,9 +534,13 @@ class SMConfig(object): binary.sources += [ os.path.join(public_path, 'CDetour', 'detours.cpp') ] binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ] + #help(self.libsafetyhook) for task in self.libsafetyhook: if task.target.arch == binary.compiler.target.arch: - binary.compiler.linkflags += [task.binary] + if task.target.platform == 'windows': + binary.compiler.linkflags += [task.binary.path.removesuffix('.dll') + '.lib'] + else: + binary.compiler.linkflags += [task.binary] return raise Exception('No suitable build of safetyhook was found.')