Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with Debian + Heimdal #122

Merged
merged 1 commit into from
Jul 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,24 @@ def _get_output(*args, **kwargs):
import ctypes.util

main_lib = os.environ.get('GSSAPI_MAIN_LIB', None)
main_path = ""
if main_lib is None and osx_has_gss_framework:
main_lib = ctypes.util.find_library('GSS')
elif main_lib is None:
for opt in link_args:
if opt.startswith('-lgssapi'):
main_lib = 'lib%s.so' % opt[2:]

# To support Heimdal on Debian, read the linker path.
if opt.startswith('-Wl,/'):
main_path = opt[4:] + "/"

if main_lib is None:
raise Exception("Could not find main GSSAPI shared library. Please "
"try setting GSSAPI_MAIN_LIB yourself or setting "
"ENABLE_SUPPORT_DETECTION to 'false'")

GSSAPI_LIB = ctypes.CDLL(main_lib)
GSSAPI_LIB = ctypes.CDLL(main_path + main_lib)


# add in the flag that causes us not to compile from Cython when
Expand Down