Add abiflags to the name of the linked Python 3 library.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 2 years ago
parent f75fae3bd1
commit 30c4c2b3b0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -219,7 +219,7 @@ class BuildLibpythonize(Command):
cmdlist.append("-o"); cmdlist.append(os.path.join(self.build_dir,'libpythonize.la')) cmdlist.append("-o"); cmdlist.append(os.path.join(self.build_dir,'libpythonize.la'))
# Link libs # Link libs
linklist = [] linklist = []
linklist.append("-lpython%i.%i" % (sys.version_info[0],sys.version_info[1]) ) linklist.append("-lpython%i.%i%s" % (sys.version_info[0], sys.version_info[1], sys.abiflags) )
linklist.extend(sysconfig.get_config_var("LIBS").split()) linklist.extend(sysconfig.get_config_var("LIBS").split())
linklist.append("-lm") linklist.append("-lm")

Loading…
Cancel
Save