On Thu, Dec 04, 2008 at 01:32:47AM -0200, Ernesto Domato wrote:
> On Wed, Dec 3, 2008 at 2:44 PM, Julien Nadeau <[EMAIL PROTECTED]> wrote:
> > On Wed, Dec 03, 2008 at 02:37:34PM -0200, Ernesto Domato wrote:
> >> On Wed, Dec 3, 2008 at 1:09 PM, Julien Nadeau <[EMAIL PROTECTED]> wrote:
> >> > On Wed, Dec 03, 2008 at 12:56:05PM -0200, Ernesto Domato wrote:
> >> >> On Wed, Dec 3, 2008 at 12:41 PM, Julien Nadeau <[EMAIL PROTECTED]> 
> >> >> wrote:
> >> >> > It would appear that libc is missing from your cross-compile 
> >> >> > environment?
> >> >> >
> >> >>
> >> >> That was my first guess, but then I thought about how sdl and freetype
> >> >> compiled without the -lc parameter to the linker or without libc. Is
> >> >> that possible?
> >> >
> >> > No, they both use libc.
> >>
> >> I'd compiled the tests for SDL with mingw32 and they compiled fine,
> >> produced the .exe files and they work as expected under wine so it
> >> seems that the libc is not missing from the cross-compile enviroment.
> >
> > But for some reason ld is not finding it. Maybe a libtool bug? You can
> > try compiling agar using an alternate libtool with the --with-libtool
> > configure option. By default, the version bundled into the distribution
> > is used.
> >
> I've tried to compile with the --with-libtool option but the
> compilation failed with the same error.Here I send you the last
> output lines of the SDL compilation and as you can see there's no -lc
> parameter passed but the library compiled sucessfully. Maybe we should
> use others parameters when using mingw32 in these case?, SDL use for
> example -luser32 -lgdi32 -lwinmm
> 
<snip>

There is no need to pass the -lc parameter. libc is used by default and
you would need to explicitely pass the -nostdlib parameter to the linker
if you wanted to disable it.

Perhaps a -L is missing somewhere? It could be that SDL compiled properly
only because of a -L added because it needed a third-party library. Look
for the actual location of libc in your tree and try explicitely passing
a -L argument for it in your $CFLAGS.


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to