znc-buildmod in cross-build environment #959

Open
opened 2026-10-05 04:55:33 +02:00 by adam · 4 comments
Owner

How it should work?

How it should work? <!-- github-sync-id:690309711 -->
Author
Owner

Please take a look at:
https://github.com/gorgone/s3_releases
This seems to have borrowed a lot from the cross-build stuff from :
https://github.com/Freetz/freetz
The s3 contains good examples for different Hardware.

Please take a look at: https://github.com/gorgone/s3_releases This seems to have borrowed a lot from the cross-build stuff from : https://github.com/Freetz/freetz The s3 contains good examples for different Hardware. <!-- github-comment-id:717628809 -->
Author
Owner

Can you explain how it's relevant?

Can you explain how it's relevant? <!-- github-comment-id:717630374 -->
Author
Owner

Thought that this Issue is about compiling znc+mods for different Hardware/OS.

Thought that this Issue is about compiling znc+mods for different Hardware/OS. <!-- github-comment-id:717633047 -->
Author
Owner

CMake supports cross-compilation, that's not a problem (though I'd need to test it with ZNC). The question here is how znc-buildmod specifically should work with it.

Should it use cmake from build system and pass correct sysroot to it, by using the toolchain file? How should it detect whether it's running from build system or from the target already? Maybe by accepting special command line args?

CMake [supports cross-compilation](https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling), that's not a problem (though I'd need to test it with ZNC). The question here is how `znc-buildmod` specifically should work with it. Should it use cmake from build system and pass correct sysroot to it, by using the toolchain file? How should it detect whether it's running from build system or from the target already? Maybe by accepting special command line args? <!-- github-comment-id:717813093 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#959