From f4cb43c9e2ac10f5582f3eaa0a56c1239949f90c Mon Sep 17 00:00:00 2001 From: tschumann Date: Sat, 22 Feb 2025 12:50:59 +1000 Subject: [PATCH] Attempt at fixing undefined references to dlerror, dlsym, dlclose and dladdr. --- loader/test/AMBuilder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader/test/AMBuilder b/loader/test/AMBuilder index 040dcf7..daa86f0 100644 --- a/loader/test/AMBuilder +++ b/loader/test/AMBuilder @@ -17,6 +17,9 @@ for cxx in MMS.all_targets: if binary.compiler.target.platform == 'linux' and binary.compiler.target.arch == 'x86_64': binary.compiler.defines += ['LIB_PREFIX="lib"', 'LIB_SUFFIX=".so"'] + if binary.compiler.target.platform == 'linux': + binary.compiler.linkflags += ['ldl'] + # TODO: hack - something makes it try and compile with /SUBSYSTEM:WINDOWS which then causes it to complain that WinMain is missing if binary.compiler.target.platform == 'windows': binary.compiler.linkflags = ['Advapi32.lib', 'kernel32.lib', 'shell32.lib']