This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to compile in one system targeting another?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]