Fix -ldl linker flag.

This commit is contained in:
tschumann 2025-02-22 12:53:48 +10:00 committed by Nicholas Hastings
parent f4cb43c9e2
commit 3ee9ee0611

View File

@ -18,7 +18,7 @@ for cxx in MMS.all_targets:
binary.compiler.defines += ['LIB_PREFIX="lib"', 'LIB_SUFFIX=".so"']
if binary.compiler.target.platform == 'linux':
binary.compiler.linkflags += ['ldl']
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':