Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 972cfc6

Browse files
committed
Add libdl on Linux systems.
Not linking with libdl causes errors when -z defs is in the linker flags.
1 parent 61085e1 commit 972cfc6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setupext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,8 @@ def add_flags(self, ext):
14931493
if sys.platform == 'win32':
14941494
# PSAPI library needed for finding Tcl / Tk at run time
14951495
ext.libraries.extend(['psapi'])
1496+
elif sys.platform.startswith('linux'):
1497+
ext.libraries.extend(['dl'])
14961498

14971499

14981500
class BackendGtk(OptionalBackendPackage):

0 commit comments

Comments
 (0)