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

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