| --- winkerberos-0.7.0/setup.py.orig 2018-12-04 04:08:15.913271100 -0500 |
| +++ winkerberos-0.7.0/setup.py 2018-12-04 04:09:06.008470300 -0500 |
| @@ -82,6 +82,16 @@ if sys.version_info[:2] == (2, 6): |
| else: |
| test_suite = "test" |
| |
| +if 'GCC' in sys.version: |
| + _extra_link_args = ['-lcrypt32', |
| + '-lsecur32', |
| + '-lShlwapi'] |
| +else: |
| + _extra_link_args = ['crypt32.lib', |
| + 'secur32.lib', |
| + 'Shlwapi.lib', |
| + '/NXCOMPAT', |
| + '/DYNAMICBASE'] |
| setup( |
| name="winkerberos", |
| version="0.7.0", |
| @@ -114,11 +124,7 @@ setup( |
| ext_modules = [ |
| Extension( |
| "winkerberos", |
| - extra_link_args=['crypt32.lib', |
| - 'secur32.lib', |
| - 'Shlwapi.lib', |
| - '/NXCOMPAT', |
| - '/DYNAMICBASE'], |
| + extra_link_args=_extra_link_args, |
| sources = [ |
| "src/winkerberos.c", |
| "src/kerberos_sspi.c" |