summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-09 09:16:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-09 09:16:43 +0100
commit30c4c2b3b078e0988fd7030db7c036b3e3a1d695 (patch)
tree44361761aea919b914716b496e4c6115110be622
parentf75fae3bd1cfb04d64d797d22a9881ba7e27402e (diff)
downloadpytdeextensions-30c4c2b3b078e0988fd7030db7c036b3e3a1d695.tar.gz
pytdeextensions-30c4c2b3b078e0988fd7030db7c036b3e3a1d695.zip
Add abiflags to the name of the linked Python 3 library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index c0997fd..14b3a1b 100755
--- a/setup.py
+++ b/setup.py
@@ -219,7 +219,7 @@ class BuildLibpythonize(Command):
cmdlist.append("-o"); cmdlist.append(os.path.join(self.build_dir,'libpythonize.la'))
# Link libs
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.append("-lm")