Skip to content

Build MCT with -fPIC#2138

Merged
alalazo merged 6 commits intospack:developfrom
climbfuji:feature/mct_fpic
Nov 4, 2025
Merged

Build MCT with -fPIC#2138
alalazo merged 6 commits intospack:developfrom
climbfuji:feature/mct_fpic

Conversation

@climbfuji
Copy link
Copy Markdown
Contributor

Description

All in the title.

MCT is no longer developed and only supports static builds. In order to link the library to shared libraries, it needs -fPIC.

Tested on my dev machine.

@climbfuji climbfuji marked this pull request as ready for review October 28, 2025 18:40
@climbfuji climbfuji requested a review from tldahlgren October 28, 2025 18:40
climbfuji added a commit to JCSDA/spack-packages that referenced this pull request Oct 28, 2025
Bug fixes for a number of packages required to build on DOD's HPCMP Narwhal. All of these bug fixes were submitted upstream:
- ectrans: bug fix for finding lapack on cray - Bug fix in ectrans: use cmake to detect LAPACK libraries spack#1946
- py-kiwisolver: missing c dependency - Add missing dependency on c language in py-kiwisolver spack#1925
- py-cartopy: missing c dependency - py-cartopy: add missing dependency on c language spack#1944
- mct: add -fPIC flags - Build MCT with -fPIC spack#2138
Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since compilers are now packages, I suggest using the syntax below. The other interface is there to support legacy code.

Comment thread repos/spack_repo/builtin/packages/mct/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/mct/package.py Outdated
Thanks @alalazo!

Co-authored-by: Massimiliano Culpo <[email protected]>
Comment thread repos/spack_repo/builtin/packages/mct/package.py Outdated
@alalazo alalazo merged commit a3f547d into spack:develop Nov 4, 2025
17 checks passed
@climbfuji climbfuji deleted the feature/mct_fpic branch November 4, 2025 19:41
mkrack pushed a commit to mkrack/spack-packages that referenced this pull request Dec 23, 2025
Co-authored-by: Massimiliano Culpo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants