File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,21 @@ def _get_output(*args, **kwargs):
82
82
import ctypes .util
83
83
84
84
main_lib = os .environ .get ('GSSAPI_MAIN_LIB' , None )
85
+ main_path = ""
85
86
if main_lib is None and osx_has_gss_framework :
86
87
main_lib = ctypes .util .find_library ('GSS' )
87
88
elif main_lib is None :
88
89
for opt in link_args :
89
90
if opt .startswith ('-lgssapi' ):
90
91
main_lib = 'lib%s.so' % opt [2 :]
92
+ if opt .startswith ('-Wl,/' ) and "heimdal" in opt :
93
+ main_path = opt [4 :] + "/"
91
94
92
95
if main_lib is None :
93
96
raise Exception ("Could not find main GSSAPI shared library. Please "
94
97
"try setting GSSAPI_MAIN_LIB yourself or setting "
95
98
"ENABLE_SUPPORT_DETECTION to 'false'" )
96
-
97
- GSSAPI_LIB = ctypes .CDLL (main_lib )
99
+ GSSAPI_LIB = ctypes .CDLL (main_path + main_lib )
98
100
99
101
100
102
# 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