Skip to content

cray-xpmem.pc: prefix, exec_prefix not set #47

@omor1

Description

@omor1

prefix and exec_prefix are not set in cray-xpmem.pc; this leaves these variables empty when processed by pkgconf/pkg-config, resulting in erroneous includedir and libdir variables. In my case, a spurious -L/lib got into my link line for Open MPI, causing my linker to attempt to link to 32-bit versions of libm, libc, etc. into a 64-bit build. Needless to say, that did not go well.

This occurs because Autoconf variables are not expanded recursively during substitution. Simply adding the following to the top of cray-xpmem.pc.in should be sufficient to fix this.

prefix=@prefix@
exec_prefix=@exec_prefix@

I believe that module.in has a similar issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions