#24 Linking fails on macOS due to unsupported linker option

Закрыто
6 лет назад открыта AuroraWright · комментариев: 4
AuroraWright прокомментировал 6 лет назад

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 прокомментировал 6 лет назад
Владелец

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 прокомментировал 6 лет назад
Владелец

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 прокомментировал 6 лет назад
Автор

That works, thanks :)

That works, thanks :)
arc13 прокомментировал 6 лет назад
Владелец

Nice ^^

Nice ^^
Войдите, чтобы присоединиться к обсуждению.
Нет этапа
Нет ответственного
2 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.