This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to compile in one system targeting another?
- From: Tadeus Prastowo <tadeus dot prastowo at unitn dot it>
- To: sugar <aldo dot zavala at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 21 Oct 2017 13:08:59 +0200
- Subject: Re: how to compile in one system targeting another?
- Authentication-results: sourceware.org; auth=none
- References: <1508555240260-0.post@n8.nabble.com>
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