bpo-21536: On Android, C extensions are linked to libpython (GH-12989)

This commit is contained in:
xdegaye 2019-04-29 09:27:40 +02:00 committed by Victor Stinner
parent b021ba5028
commit 254b309c80
9 changed files with 47 additions and 10 deletions

View file

@ -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':