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:
> > On Wed, Dec 03, 2008 at 12:15:08PM -0200, Ernesto Domato wrote:
> >> Well, evidently I did something wrong when I tried to cross compile
> >> Agar because I decided to start again with a clean source directory
> >> and even using a different directory and it started to compile fine.
> >> But now, my problem is linking and these are the last messages when I
> >> do make:
> >>
> >> /home/edomato/dev/Juegos/agar/tmp/agar-1.3.3/core/dso.c:1: warning:
> >> -fPIC ignored for target (all code is position independent)
> >> /usr/bin/i586-mingw32msvc-gcc -mno-cygwin -D_AGAR_INTERNAL
> >> -D_BSD_SOURCE -I/home/edomato/dev/Juegos/agar/tmp/win32-agar/include
> >> -I/home/edomato/dev/Juegos/agar/tmp/win32-agar/include/agar
> >> -D_AGAR_CORE_INTERNAL
> >> -I/usr/local/cross-tools/i386-mingw32/include/SDL -D_GNU_SOURCE=1
> >> -Dmain=SDL_main -I/home/edomato/dev/Juegos/agar/tmp/win32-agar -c
> >> /home/edomato/dev/Juegos/agar/tmp/agar-1.3.3/core/dso.c -o dso.o
> >> >/dev/null 2>&1
> >> mv -f .libs/dso.lo dso.lo
> >> .../mk/libtool/libtool --mode=link /usr/bin/i586-mingw32msvc-gcc -o
> >> libag_core.la                 -rpath /usr/local/lib
> >> -version-info 1:0:0            config.lo core.lo error.lo event.lo
> >> object.lo prop.lo rcs.lo timeout.lo class.lo cpuinfo.lo load_den.lo
> >> data_source.lo load_string.lo load_version.lo snprintf.lo vsnprintf.lo
> >> vasprintf.lo net_client.lo net_command.lo net_fgetln.lo net_server.lo
> >> dir.lo md5.lo sha1.lo rmd160.lo file.lo string_compat.lo dso.lo
> >> rm -fr .libs/libag_core.la .libs/libag_core.* .libs/libag_core.*
> >> /usr/bin/i586-mingw32msvc-gcc -shared  config.lo core.lo error.lo
> >> event.lo object.lo prop.lo rcs.lo timeout.lo class.lo cpuinfo.lo
> >> load_den.lo data_source.lo load_string.lo load_version.lo snprintf.lo
> >> vsnprintf.lo vasprintf.lo net_client.lo net_command.lo net_fgetln.lo
> >> net_server.lo dir.lo md5.lo sha1.lo rmd160.lo file.lo string_compat.lo
> >> dso.lo  -lc  -Wl,-soname -Wl,libag_core.so.1 -o
> >> ..libs/libag_core.so.1.0.0
> >> /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld:
> >> cannot find -lc
> >> collect2: ld returned 1 exit status
> >> make[1]: *** [libag_core.la] Error 1
> >> make[1]: se sale del directorio
> >> `/home/edomato/dev/Juegos/agar/tmp/win32-agar/core'
> >> make: *** [all-subdir] Error 1
> >
> > 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.


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

Reply via email to