Skip to content

Commit a5da8f5

Browse files
Fix detection of libgssapi_krb5.so in nonstandard path
Related: #228 Signed-off-by: Robbie Harwood <[email protected]>
1 parent 1524cad commit a5da8f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ def get_output(*args, **kwargs):
165165
# To support Heimdal on Debian, read the linker path.
166166
if opt.startswith('-Wl,/'):
167167
main_path = opt[4:] + "/"
168+
if main_path == "":
169+
for d in library_dirs:
170+
if os.path.exists(os.path.join(d, main_lib)):
171+
main_path = d
172+
break
168173

169174
if main_lib is None:
170175
raise Exception("Could not find main GSSAPI shared library. Please "

0 commit comments

Comments
 (0)