fix(libs): retain plain PRX dependencies in native wrappers #1661

Closed
MarcZX10 wants to merge 2 commits from upstream-pr/1661 into main
MarcZX10 commented 2026-10-08 15:57:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T15:57:57Z.


What

Link each Linux native wrapper to its plain PRX twin with --no-as-needed, so the loader retains the dependency even when the wrapper has no direct unresolved symbol from the plain library. Add a CTest check for the resulting DT_NEEDED entry. The SaveData C++20 file-clock conversion is included because building its native wrapper requires the fix proposed in #1260.

Tested

Linux, GCC 12.2: configured with BUILD_TESTING=ON, built all nine native wrapper targets, and ran the native-wrapper dependency CTests (9/9 passed). tools/check_conventions.py and git diff --check pass.

Checklist

  • Based on current main; no open PR implements native-wrapper dependencies
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in TechnicalDebt
  • No notes, investigation files or images added
  • New third-party code is a submodule built from source
  • Generic build and loader behavior
  • Depends on: #1260
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4789461245 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1661). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T15:57:57Z. --- ### What Link each Linux native wrapper to its plain PRX twin with `--no-as-needed`, so the loader retains the dependency even when the wrapper has no direct unresolved symbol from the plain library. Add a CTest check for the resulting `DT_NEEDED` entry. The SaveData C++20 file-clock conversion is included because building its native wrapper requires the fix proposed in #1260. ### Tested Linux, GCC 12.2: configured with `BUILD_TESTING=ON`, built all nine native wrapper targets, and ran the native-wrapper dependency CTests (9/9 passed). `tools/check_conventions.py` and `git diff --check` pass. ### Checklist - [x] Based on current `main`; no open PR implements native-wrapper dependencies - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes, investigation files or images added - [x] New third-party code is a submodule built from source - [x] Generic build and loader behavior - [x] Depends on: #1260 - [x] AI-assisted: yes
oneandonlydean commented 2026-10-08 19:20:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:20:38Z.


Nothing is shown failing without these DT_NEEDED entries, and it also carries #1260's change. Closing for now; reopen with a case that fails on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067333603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1661#issuecomment-6067333603). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T19:20:38Z. --- Nothing is shown failing without these `DT_NEEDED` entries, and it also carries #1260's change. Closing for now; reopen with a case that fails on main.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1661
No description provided.