Skip to content

Commit bbbdaa9

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

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

Makefile.pre.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,6 @@ Python/interpconfig.o: $(srcdir)/Python/interpconfig.c $(srcdir)/Python/config_c
19581958
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
19591959
$(CC) -c $(PY_CORE_CFLAGS) \
19601960
-DSOABI='"$(SOABI)"' \
1961-
$(MULTIARCH_CPPFLAGS) \
19621961
-o $@ $(srcdir)/Python/dynload_shlib.c
19631962

19641963
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)