Native build of binutils/gcc
Posted: Wed Jan 21, 2015 11:20 am
This question may seem very simple but I cannot find information about this on the wiki and the answer is probably stupidly obvious, sorry.
I've got a C library, and a cross-compiler to my OS (x86_64-glidix). The --prefix I use is /glidix (the exec-prefix for binutils and gcc is /usr, so I can access them without modifying the PATH). Porting libraries is obviously very easy (e.g. the ones that GCC depends on): I just have to give them the prefix and simply install; they'll be in the cross-compiler search path.
But how do I configure binutils and GCC to actually do native builds for my OS? I don't want to install the Glidix executables on my Linux system for obvious reasons... so what configuration options am I supposed to use, and which files shall I copy and where to, on the filesystem that Glidix runs on?
I hope the question is understandable...
I've got a C library, and a cross-compiler to my OS (x86_64-glidix). The --prefix I use is /glidix (the exec-prefix for binutils and gcc is /usr, so I can access them without modifying the PATH). Porting libraries is obviously very easy (e.g. the ones that GCC depends on): I just have to give them the prefix and simply install; they'll be in the cross-compiler search path.
But how do I configure binutils and GCC to actually do native builds for my OS? I don't want to install the Glidix executables on my Linux system for obvious reasons... so what configuration options am I supposed to use, and which files shall I copy and where to, on the filesystem that Glidix runs on?
I hope the question is understandable...