Try to fix Linux link error.
authorCarl Hetherington <cth@carlh.net>
Tue, 31 Mar 2020 11:56:56 +0000 (13:56 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 31 Mar 2020 11:56:56 +0000 (13:56 +0200)
src/tools/wscript

index c4fb7b820f29f1442cd38673c74510994c65f6bb..58e540856154919c4868b6da866bdd5be1ef21da 100644 (file)
@@ -39,6 +39,8 @@ def build(bld):
 
     if bld.env.TARGET_WINDOWS:
         uselib += 'WINSOCK2 DBGHELP SHLWAPI MSWSOCK BOOST_LOCALE WINSOCK2 OLE32 DSOUND WINMM KSUSER '
+    if bld.env.TARGET_LINUX:
+        bld.env.LINKFLAGS.append('-Wl,-ldl')
 
     cli_tools = []
     if bld.env.VARIANT == 'swaroop-theater':