Re: Autoconf and a bare-metal host with no C library

2016-10-14 Thread Ineiev
Hello, On Thu, Oct 13, 2016 at 04:11:47AM +0200, Luca Saiu wrote: > > So the problem is simple: as soon as I add > > --8<---cut here---start->8--- > AC_PROG_CC > --8<---cut here---end--->8--- > > to configure.ac, the

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Luca Saiu
Hello. On 2016-10-13 at 15:48, Keith Marshall wrote: > Or maybe, you could consider something along the lines of > MINGW_AC_PROG_CC_COMPILE_ONLY, (and associated support macros), as > included within this aclocal.m4: > https://sourceforge.net/p/mingw/mingw-org-wsl/ci/5.0-active/tree/aclocal.m4

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Robert Woodworth
I don't have an example, but I have done this in the past. Autoconf need to know that the host and target are different, then it will not try the 'native' CC to check for local executable. On Thu, Oct 13, 2016 at 8:48 AM, Keith Marshall < keith.d.marsh...@ntlworld.com> wrote: > On 13/10/16

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Keith Marshall
On 13/10/16 15:24, Russell Shaw wrote: > On 13/10/16 13:11, Luca Saiu wrote: > > ... > > So, what I'm asking you is: does a clean solution exist, or compiling > > without a runtime library is just not supported by the Autotools? It > > sounds weird to say that for configuring you need a

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Zack Weinberg
On Thu, Oct 13, 2016 at 10:24 AM, Russell Shaw wrote: > On 13/10/16 13:11, Luca Saiu wrote: > ... >> So, what I'm asking you is: does a clean solution exist, or compiling >> without a runtime library is just not supported by the Autotools? It >> sounds weird to say that

Re: Autoconf and a bare-metal host with no C library

2016-10-13 Thread Russell Shaw
On 13/10/16 13:11, Luca Saiu wrote: ... > So, what I'm asking you is: does a clean solution exist, or compiling > without a runtime library is just not supported by the Autotools? It > sounds weird to say that for configuring you need a cross-compiler with > support for a runtime that will

Autoconf and a bare-metal host with no C library

2016-10-13 Thread Luca Saiu
Hello. After playing with kernel-mode programming for a while tonight I finally decided to add autotools support to my little kernel, and I stumbled on a problem. I'm not writing to bug-autoconf as I can't really believe this is the first time you hear about this, but if web searches weren't