File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,24 @@ def _get_output(*args, **kwargs):
8282 import ctypes .util
8383
8484 main_lib = os .environ .get ('GSSAPI_MAIN_LIB' , None )
85+ main_path = ""
8586 if main_lib is None and osx_has_gss_framework :
8687 main_lib = ctypes .util .find_library ('GSS' )
8788 elif main_lib is None :
8889 for opt in link_args :
8990 if opt .startswith ('-lgssapi' ):
9091 main_lib = 'lib%s.so' % opt [2 :]
9192
93+ # To support Heimdal on Debian, read the linker path.
94+ if opt .startswith ('-Wl,/' ):
95+ main_path = opt [4 :] + "/"
96+
9297 if main_lib is None :
9398 raise Exception ("Could not find main GSSAPI shared library. Please "
9499 "try setting GSSAPI_MAIN_LIB yourself or setting "
95100 "ENABLE_SUPPORT_DETECTION to 'false'" )
96101
97- GSSAPI_LIB = ctypes .CDLL (main_lib )
102+ GSSAPI_LIB = ctypes .CDLL (main_path + main_lib )
98103
99104
100105# add in the flag that causes us not to compile from Cython when
You can’t perform that action at this time.
0 commit comments