mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-21536: On Android, C extensions are linked to libpython (GH-12989)
This commit is contained in:
parent
b021ba5028
commit
254b309c80
9 changed files with 47 additions and 10 deletions
|
@ -47,7 +47,10 @@ for opt in opt_flags:
|
|||
print(' '.join(flags))
|
||||
|
||||
elif opt in ('--libs', '--ldflags'):
|
||||
libs = getvar('LIBS').split() + getvar('SYSLIBS').split()
|
||||
libpython = getvar('LIBPYTHON')
|
||||
libs = [libpython] if libpython else []
|
||||
libs.extend(getvar('LIBS').split() + getvar('SYSLIBS').split())
|
||||
|
||||
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
|
||||
# shared library in prefix/lib/.
|
||||
if opt == '--ldflags':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue