#24 Linking fails on macOS due to unsupported linker option

Closed
opened 1 year ago by AuroraWright · 4 comments

It seems the devkitARM compiler doesn't support the "-Wl,-search_paths_first" linker option on macOS, which is added by CMake automatically. One solution is editing the template in cpp3ds: https://github.com/cpp3ds/cpp3ds/blob/master/cmake/template_arm/CMakeLists.txt#L34 adding these 3 lines of code https://github.com/kiibohd/controller/blob/master/Lib/CMake/build.cmake#L10 which filter out the option. cpp3ds won't be updated anytime soon, so maybe it's worth it to fork it?

It seems the devkitARM compiler doesn't support the "-Wl,-search_paths_first" linker option on macOS, which is added by CMake automatically. One solution is editing the template in cpp3ds: https://github.com/cpp3ds/cpp3ds/blob/master/cmake/template_arm/CMakeLists.txt#L34 adding these 3 lines of code https://github.com/kiibohd/controller/blob/master/Lib/CMake/build.cmake#L10 which filter out the option. cpp3ds won't be updated anytime soon, so maybe it's worth it to fork it?
arc13 commented 1 year ago
Owner

Okay, I contacted Naxann, who already forked cpp3ds, to see if he can merge the patch.

Thanks for your report and the fix ^^

Okay, I contacted Naxann, who already forked cpp3ds, to see if he can merge the patch. Thanks for your report and the fix ^^
arc13 commented 1 year ago
Owner

And this is done, can you test ? https://github.com/Naxann/cpp3ds

And this is done, can you test ? https://github.com/Naxann/cpp3ds
AuroraWright commented 1 year ago
Poster

That works, thanks :)

That works, thanks :)
arc13 commented 1 year ago
Owner

Nice ^^

Nice ^^
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.