From c7139a2e86d9c33217aa3997af0d76daaaa911a1 Mon Sep 17 00:00:00 2001 From: Ayappan P Date: Wed, 16 Apr 2025 09:33:21 -0400 Subject: [PATCH 1/2] pythongh-117088: Fix AIX build --- Makefile.pre.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index e41a26e469dc22..6469854895a4bf 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -999,7 +999,12 @@ $(LIBRARY): $(LIBRARY_OBJS) $(AR) $(ARFLAGS) $@ $(LIBRARY_OBJS) libpython$(LDVERSION).so: $(LIBRARY_OBJS) $(DTRACE_OBJS) - $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) + # AIX Linker don't support "-h" option + if test "$(MACHDEP)" != "aix"; then \ + $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM); \ + else \ + $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM); \ + fi if test $(INSTSONAME) != $@; then \ $(LN) -f $(INSTSONAME) $@; \ fi From d4471996e9175bcf3900ac2c1b79395d7e5252e1 Mon Sep 17 00:00:00 2001 From: Ayappan P Date: Wed, 16 Apr 2025 09:39:48 -0400 Subject: [PATCH 2/2] Add NEWS entry --- .../next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst diff --git a/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst b/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst new file mode 100644 index 00000000000000..0845b0551394f8 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-04-16-09-38-48.gh-issue-117088.EFt_5c.rst @@ -0,0 +1 @@ +AIX linker don't support -h option, so avoid it through platform check