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):
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 :]
91
92
93
+ # To support Heimdal on Debian, read the linker path.
94
+ if opt .startswith ('-Wl,/' ):
95
+ main_path = opt [4 :] + "/"
96
+
92
97
if main_lib is None :
93
98
raise Exception ("Could not find main GSSAPI shared library. Please "
94
99
"try setting GSSAPI_MAIN_LIB yourself or setting "
95
100
"ENABLE_SUPPORT_DETECTION to 'false'" )
96
101
97
- GSSAPI_LIB = ctypes .CDLL (main_lib )
102
+ GSSAPI_LIB = ctypes .CDLL (main_path + main_lib )
98
103
99
104
100
105
# 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