build(libSceAudioIn): keep --exclude-libs off Apple's linker #10669
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10669"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-24T16:16:31Z.
What
libSceAudioInpasses--exclude-libs,ALLto the linker on every host. Apple's ld64 doesn't know that option, so oncelibkernelbuilds on macOS,libSceAudioIn.prxfails to link:With this change the option is no longer passed on Apple, and every other host keeps it as before. Other libraries that pass the option (
libSceSsl,libSceFreeType,libSceVorbisDec,libSceUsbd,libSceAgcDriver) already leave it out on Apple.On macOS,
libSceAudioInnow exports the symbols of its static SDL2, aslibSceAudioOut,libSceVideoOutandlibSceAgcDriveralready do onmain. This PR doesn't change how the libraries share SDL on macOS.Overlap:
6687cbac29, 2026-10-16) conflicts withmainand needs a rebase anyway. The order I propose: this PR first, with #7201 keepingmain's block at its rebase. If #7201 lands first, this PR isn't needed and I will close it.63db337cd8in mugurc's macOS series (not in an open PR) linkslibSceAudioInandlibSceAudioOuttolibSceAgcDriver's SDL on Apple. That is the better end state, butlibSceAgcDriverdoesn't build on macOS onmainyet; that change would replace these lines.libSceAgcDriver. It already conflicts withmain, and its rebase would take its own version of the block.Tested
Current
main(2026-10-26): I looked for the smallest set of open PRs that boots titles on macOS frommain035ac96edd: #10366, #10552, #7631, #7804, #11249, this PR, #10540, #11447, #11047, #11048, #10876 and #9263, plus a localVulkanDevice.cpppatch that no open PR covers yet. With it, Planet of Lana and God of War Sons of Sparta, relinked with that tree, start from New Game and run without errors (Lana in gameplay for 120 s, GoW to the Cyclops fight in 145 s). Without this PR,libSceAudioIndoesn't link:ld: unknown options: --exclude-libs.Apple M4 Pro, macOS 27.0.1, Apple clang, x86-64 Release (
-DCMAKE_OSX_ARCHITECTURES=x86_64, Ninja,BUILD_TESTING=ON).libSceAudioInlinks againstlibkernel, which doesn't build onmainon macOS yet. So I built it onmain3fcb5e4d76with the open macOS build PRs applied: #10562, #10641, #10366, #10419, #7631, #7804, #10552, #4630, #10659 and #10660, with the conflicts of #10552 and #4630 resolved locally.libSceAudioIn.prxlinks andguest_audio_in_captureandguest_audio_in_no_devicepass.Not built on Linux or Windows; the condition is true there, so they link as before.
check_conventions.py --base upstream/mainpasses.pr_overlap.pylists #7201 and #5021 as pull requests it couldn't compare on this file because they conflict withmain; both are covered above.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T16:22:17Z.
Review: CHANGES_REQUESTED
The exact libSceAudioIn/CMakeLists.txt hunk in this PR is already present in the open #7201 (verified against its current diff); the change is byte-for-byte identical. Because #7201 remains open, a second PR carrying this same fix duplicates existing work, which the contribution rules prohibit. Please coordinate with the existing PR author/maintainers on how they want this fix integrated, or re-scope this PR to a distinct, independently useful change. I am not asking anyone to close #7201 or making a judgment about its broader status; I cannot approve a parallel copy of the same hunk.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:16:13Z.
Review: APPROVED
Reviewed
6aa0ef1bb28ae254a0924c57df5b00e2bc72fdf3. Approve; no actionable finding in this focused review.Only Apple builds omit LINKER:--exclude-libs,ALL; the AudioIn library and existing SDL linkage remain registered. Linux and Windows retain the GNU linker option.
Validation: Executed the submitted CMake on head/base across Darwin, Linux and Windows branches and inspected the recorded link options. Only the intended Darwin option differs.
Scope / next step: No native Apple AudioIn link or capture session was performed.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-26T21:35:29Z.
Review: CHANGES_REQUESTED
The change itself checks out: only Apple drops
--exclude-libs,ALL, matching the other libraries that already do so, and Linux/Windows keep it. Reports from @krishalivaibhav (M2) and @THEMANnt agree.The one blocker is @MarcZX10's open change request on this head: the hunk is identical to the one in #7201, and the agreement on order is still missing.
main's block when it rebases, or ask @MarcZX10 to withdraw the request given the hunk is byte-identical and merges cleanly in either order. Once that is on the thread this is ready to merge.