diff setup.py @ 21610:a9e06ffaf7fb legacy-trunk

Patch #497126: Always compile dl.
author Martin v. Löwis <martin@v.loewis.de>
date Tue, 01 Jan 2002 20:18:30 +0000
parents fb6b3fc4e0c1
children 9d5adff87f30
line wrap: on
line diff
--- a/setup.py	Tue Jan 01 19:59:11 2002 +0000
+++ b/setup.py	Tue Jan 01 20:18:30 2002 +0000
@@ -567,6 +567,11 @@
                                    define_macros = expat_defs,
                                    libraries = ['expat']) )
 
+	# Dynamic loading module
+        dl_inc = find_file('dlfcn.h', [], inc_dirs)
+        if dl_inc is not None:
+		exts.append( Extension('dl', ['dlmodule.c']) )
+		
         # Platform-specific libraries
         if platform == 'linux2':
             # Linux-specific modules