Skip to content

Commit 7532634

Browse files
committed
Don't set $LD_RUN_PATH when empty
That lead to this failure when building in Fedora: ERROR 0010: file '/usr/lib64/python3.12/site-packages/mod_wsgi/server/mod_wsgi-py312.cpython-312-x86_64-linux-gnu.so' contains an empty runpath in []
1 parent dbbbd24 commit 7532634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ def get_apu_includes():
336336
LD_RUN_PATH += ':' + ':'.join(LD_RUN_PATHS)
337337
LD_RUN_PATH = LD_RUN_PATH.lstrip(':')
338338

339-
os.environ['LD_RUN_PATH'] = LD_RUN_PATH
339+
if LD_RUN_PATH:
340+
os.environ['LD_RUN_PATH'] = LD_RUN_PATH
340341

341342
# On MacOS X, recent versions of Apple's Apache do not support compiling
342343
# Apache modules with a target older than 10.8. This is because it

0 commit comments

Comments
 (0)