summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-01 20:18:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-01 20:18:30 (GMT)
commit93227275dcf18196c1b81a3c884dbd2e78c8f440 (patch)
tree38fac8a0362ab5455ca290de83ab65b59fb9a06c /setup.py
parent7198a525f3e926899ba238f6e6a2e6e9349b7de4 (diff)
downloadcpython-93227275dcf18196c1b81a3c884dbd2e78c8f440.zip
cpython-93227275dcf18196c1b81a3c884dbd2e78c8f440.tar.gz
cpython-93227275dcf18196c1b81a3c884dbd2e78c8f440.tar.bz2
Patch #497126: Always compile dl.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 28a1a7c..8af8bde 100644
--- a/setup.py
+++ b/setup.py
@@ -567,6 +567,11 @@ class PyBuildExt(build_ext):
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