|
|
a9fdea |
diff --git a/setup.py b/setup.py
|
|
|
a9fdea |
index e0c8c84..a3e24f1 100644
|
|
|
a9fdea |
--- a/setup.py
|
|
|
a9fdea |
+++ b/setup.py
|
|
|
a9fdea |
@@ -321,19 +321,6 @@ EXTRA_COMPILE_FLAGS = (EXTRA_INCLUDES + CPPFLAGS + EXTRA_CPPFLAGS +
|
|
|
a9fdea |
CFLAGS + EXTRA_CFLAGS + APR_INCLUDES + APU_INCLUDES)
|
|
|
a9fdea |
EXTRA_LINK_ARGS = PYTHON_LDFLAGS + PYTHON_LDLIBS
|
|
|
a9fdea |
|
|
|
a9fdea |
-# Force adding of LD_RUN_PATH for platforms that may need it.
|
|
|
a9fdea |
-
|
|
|
a9fdea |
-LD_RUN_PATHS = []
|
|
|
a9fdea |
-if os.name != 'nt':
|
|
|
a9fdea |
- LD_RUN_PATH = os.environ.get('LD_RUN_PATH', '')
|
|
|
a9fdea |
- LD_RUN_PATHS = [PYTHON_CFGDIR]
|
|
|
a9fdea |
- if PYTHON_LIBDIR != APXS_LIBDIR:
|
|
|
a9fdea |
- LD_RUN_PATHS.insert(0, PYTHON_LIBDIR)
|
|
|
a9fdea |
- LD_RUN_PATH += ':' + ':'.join(LD_RUN_PATHS)
|
|
|
a9fdea |
- LD_RUN_PATH = LD_RUN_PATH.lstrip(':')
|
|
|
a9fdea |
-
|
|
|
a9fdea |
- os.environ['LD_RUN_PATH'] = LD_RUN_PATH
|
|
|
a9fdea |
-
|
|
|
a9fdea |
# On MacOS X, recent versions of Apple's Apache do not support compiling
|
|
|
a9fdea |
# Apache modules with a target older than 10.8. This is because it
|
|
|
a9fdea |
# screws up Apache APR % formats for apr_time_t, which breaks daemon
|
|
|
a9fdea |
@@ -362,7 +349,7 @@ else:
|
|
|
a9fdea |
|
|
|
a9fdea |
extension = Extension(extension_name, source_files,
|
|
|
a9fdea |
include_dirs=INCLUDE_DIRS, extra_compile_args=EXTRA_COMPILE_FLAGS,
|
|
|
a9fdea |
- extra_link_args=EXTRA_LINK_ARGS, runtime_library_dirs=LD_RUN_PATHS)
|
|
|
a9fdea |
+ extra_link_args=EXTRA_LINK_ARGS)
|
|
|
a9fdea |
|
|
|
a9fdea |
def _documentation():
|
|
|
a9fdea |
result = []
|