Skip to content

Install Sage-specific .pc files when running make, not configure #29003

@embray

Description

@embray

As noted in this comment, if we generate any .pc files at configure time, rather than write them directly to $SAGE_LOCAL it would be preferable to write them somewhere in the sage source tree instead, then copy them into the relevant install target (i.e. $SAGE_LOCAL) only when running make.

One tricky aspect to this is at least some SPGKs require our generated .pc files to be installed in $SAGE_LOCAL to build properly. Currently, one way around that is to add $(PCFILES) to the package's dependencies. This is needed at the very least for numpy.

A different workaround might be to modify PKG_CONFIG_PATH to include .pc files in the source tree. I have not tried that yet.

CC: @dimpase @mkoeppe

Component: build

Author: Erik Bray

Branch: c7fbc65

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29003

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions