how to compile in one system targeting another?
Tadeus Prastowo
tadeus.prastowo@unitn.it
Sat Oct 21 11:09:00 GMT 2017
On Sat, Oct 21, 2017 at 5:07 AM, sugar <aldo.zavala@gmail.com> wrote:
> Hi, how could for instance, compile a source in my server, but the actual
> target will be another server, should I enable certain special flags at the
> time of the compilation?
If the other server has the same architecture as your server, then
nothing special is needed. Otherwise, you want to perform a
cross-compilation. For example,
https://duckduckgo.com/?q=gcc+cross+compilation&ia=web returns
https://sourceware.org/ml/crossgcc/2005-08/msg00114/l-cross-ltr.pdf.
The web should have plenty of information on cross compilation with
gcc.
--
Best regards,
Tadeus
More information about the Gcc-help
mailing list