-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target directory in output folder #112
Comments
You would use |
I attempted to compile with Also, why is there no compiler in the target directory, e.g. |
You'd need to hack this into the makefile since, as written, it sets the sysroot itself. But I want to reiterate that this is not a good idea. It's gratuitously breaking the intended split between host and target files and unless I'm missing something you don't have any technical reason to do this, just an aesthetic one that seems to be based on misunderstanding the purpose of the existing layout.
Because building a cross compiler and cross-compiling a native compiler for the target are two completely different tasks, and doing them both when you don't need the latter would double the time and space required to build. |
That's fair. Is there not a |
Yes, mcm can also cross-compile native compilers for your target, and in this case they don't have the cross directory structure you're unhappy with. You need to already have the cross compiler in your PATH, then run mcm with NATIVE=y, and it should just work. |
I set the compuler to my path and set Here's the
|
|
Upon adding
I've checked to make sure that the compiler exists in the output directory, pointed to in the EDIT: after setting path properly I was able to compile |
After some playing around with the environment I was able to compile a native Musl GCC compiler. Thanks, @richfelker! |
It would be really helpful to have a section in the readme on how to build a native compiler. Also it would be nice if it was scripted so it could be built in a single run of |
would anyone be willing to share an implementation like our now-departed friend who started this thread> |
Is it possible to rather than the header files, libraries, and linker to be placed rather than into the target directory in sysroot to the root output directory.
So from this...
To this...
I've tried setting GCC's
--with-build-sysroot=/
however the sysroot dir is still present. Is there a way to forego this?Thank you in advance.
The text was updated successfully, but these errors were encountered: