Skip to content

Commit

Permalink
Fix detection of libgssapi_krb5.so in nonstandard path
Browse files Browse the repository at this point in the history
Related: #228

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
  • Loading branch information
frozencemetery committed Nov 19, 2020
1 parent 1524cad commit a5da8f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ def get_output(*args, **kwargs):
# To support Heimdal on Debian, read the linker path.
if opt.startswith('-Wl,/'):
main_path = opt[4:] + "/"
if main_path == "":
for d in library_dirs:
if os.path.exists(os.path.join(d, main_lib)):
main_path = d
break

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

0 comments on commit a5da8f5

Please sign in to comment.