Skip to content

Commit f8357ed

Browse files
committed
Build extension suffix from SOABI_PLATFORM
1 parent ecb87b4 commit f8357ed

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION)
173173
# Symbols used for using shared libraries
174174
SHLIB_SUFFIX= @SHLIB_SUFFIX@
175175
EXT_SUFFIX= @EXT_SUFFIX@
176+
STABLE_EXT_SUFFIX= @STABLE_EXT_SUFFIX@
176177
LDSHARED= @LDSHARED@ $(PY_LDFLAGS)
177178
BLDSHARED= @BLDSHARED@ $(PY_CORE_LDFLAGS)
178179
LDCXXSHARED= @LDCXXSHARED@ $(PY_LDFLAGS)
@@ -1958,7 +1959,6 @@ Python/interpconfig.o: $(srcdir)/Python/interpconfig.c $(srcdir)/Python/config_c
19581959
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
19591960
$(CC) -c $(PY_CORE_CFLAGS) \
19601961
-DSOABI='"$(SOABI)"' \
1961-
$(MULTIARCH_CPPFLAGS) \
19621962
-o $@ $(srcdir)/Python/dynload_shlib.c
19631963

19641964
Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile

Python/dynload_shlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const char *_PyImport_DynLoadFiletab[] = {
4545
"." ALT_SOABI ".so",
4646
#endif
4747
".abi" PYTHON_ABI_STRING ".so",
48-
#ifdef MULTIARCH
49-
".abi" PYTHON_ABI_STRING "-" MULTIARCH ".so",
48+
#ifdef SOABI_PLATFORM
49+
".abi" PYTHON_ABI_STRING "-" SOABI_PLATFORM ".so",
5050
#endif
5151
".so",
5252
#endif /* __CYGWIN__ */

configure

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,8 @@ AS_CASE([$ac_sys_system],
11971197
[SOABI_PLATFORM=$PLATFORM_TRIPLET]
11981198
)
11991199

1200+
AC_DEFINE_UNQUOTED([SOABI_PLATFORM], ["${SOABI_PLATFORM}"], [Platform tag, used in binary module extension filenames.])
1201+
12001202
if test x$MULTIARCH != x; then
12011203
MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
12021204
fi

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,9 @@
18181818
/* The size of '_Bool', as computed by sizeof. */
18191819
#undef SIZEOF__BOOL
18201820

1821+
/* Platform tag, used in binary module extension filenames. */
1822+
#undef SOABI_PLATFORM
1823+
18211824
/* Define to 1 if you have the ANSI C header files. */
18221825
#undef STDC_HEADERS
18231826

0 commit comments

Comments
 (0)