Skip to content

.pc for Android contains invalid syntax#138800

@lazka

Description

@lazka

Bug report

Bug description:

Looking at the Android build here: https://www.python.org/downloads/android/

The .pc files look like this:

# See: man pkg-config prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Python Description: Build a C extension for Python Requires: Version: 3.14 Libs.private: -ldl -llog Libs: -L${libdir} $(BLDLIBRARY) Cflags: -I${includedir}/python3.14 

The "Libs:" line contains some autotools internals instead of the library name resulting in linker errors like:

cannot find $(BLDLIBRARY): No such file or directory 

Might be related to #115780

Disclaimer: The main reason I'm reporting this is that it also breaks the Cygwin build in the same way, but that's not a supported platform, so this is the next best thing. i.e. I've not actually tested on Android.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-androidbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions