Skip to content

Commit eadad30

Browse files
committed
Build extension suffix from SOABI_PLATFORM
1 parent 4926700 commit eadad30

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,6 @@ Python/interpconfig.o: $(srcdir)/Python/interpconfig.c $(srcdir)/Python/config_c
19671967
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
19681968
$(CC) -c $(PY_CORE_CFLAGS) \
19691969
-DSOABI='"$(SOABI)"' \
1970-
$(MULTIARCH_CPPFLAGS) \
19711970
-o $@ $(srcdir)/Python/dynload_shlib.c
19721971

19731972
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
@@ -1206,6 +1206,8 @@ AS_CASE([$ac_sys_system],
12061206
[SOABI_PLATFORM=$PLATFORM_TRIPLET]
12071207
)
12081208

1209+
AC_DEFINE_UNQUOTED([SOABI_PLATFORM], ["${SOABI_PLATFORM}"], [Platform tag, used in binary module extension filenames.])
1210+
12091211
if test x$MULTIARCH != x; then
12101212
MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
12111213
fi

pyconfig.h.in

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

1858+
/* Platform tag, used in binary module extension filenames. */
1859+
#undef SOABI_PLATFORM
1860+
18581861
/* Define to 1 if you have the ANSI C header files. */
18591862
#undef STDC_HEADERS
18601863

0 commit comments

Comments
 (0)