Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0be0230

Browse files
Fix build with Debian + Heimdal
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
1 parent 32cb94c commit 0be0230

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /