mirror of https://github.com/go-python/gopy.git
Fixes #289
This commit is contained in:
parent
0eb43bb47f
commit
0457da34db
|
@ -109,6 +109,8 @@ import os
|
||||||
version=sys.version_info.major
|
version=sys.version_info.major
|
||||||
|
|
||||||
def clear_ld_flags(s):
|
def clear_ld_flags(s):
|
||||||
|
if s is None:
|
||||||
|
return ''
|
||||||
skip_first_word = s.split(' ', 1)[1] # skip compiler name
|
skip_first_word = s.split(' ', 1)[1] # skip compiler name
|
||||||
skip_bundle = skip_first_word.replace('-bundle', '') # cgo already passes -dynamiclib
|
skip_bundle = skip_first_word.replace('-bundle', '') # cgo already passes -dynamiclib
|
||||||
return skip_bundle
|
return skip_bundle
|
||||||
|
|
Loading…
Reference in New Issue