Blame SOURCES/mod_wsgi-4.7.1-remove-rpath.patch

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