feelpp / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
0 stars 0 forks source link

cpr: add pic and shared variants #13

Open prudhomm opened 3 days ago

prudhomm commented 3 days ago

Summary

This issue proposes adding two new variants, +pic and +shared, to the cpr package in Spack:

Rationale

  1. Position-Independent Code (+pic): Building position-independent code (PIC) is essential for linking static libraries into shared libraries. Currently, cpr only builds static libraries, which restricts its usability in applications that need to link with PIC-compatible code. By adding a +pic variant, users have the option to enable PIC, improving cpr’s compatibility with larger projects and shared library requirements.
  2. Shared Libraries (+shared): The default static library build limits flexibility, as many projects require shared libraries to manage memory and dependencies more effectively. Adding a +shared variant allows users to choose between static and shared library builds, making cpr more versatile and better suited for dynamic linking needs in complex projects.

Description

No response

Additional information

No response

General information