[CVS] Can not cross-compile assembly stuff with libtool

Hello,
I tried building (cross-compiling) latest SDL cvs, and got this error with
one file (I separated the different lines of the make output):

m68k-atari-mint-gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME=""
-DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT=""
-DPACKAGE=“SDL” -DVERSION=“1.2.7” -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I.
-I…/…/…/…/SDL/src/audio/mint -O2 -fomit-frame-pointer -DDEBUG_CDROM
-fexpensive-optimizations -Wall -DDISABLE_THREADS -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -I…/…/…/…/SDL/src/video/ataricommon -DENABLE_XBIOS
-DENABLE_GEM -DMINTAUDIO_SUPPORT -DENABLE_LDG -Dunix
-I…/…/…/…/SDL/include -I…/…/…/…/SDL/include/SDL
-I…/…/…/…/SDL/src -I…/…/…/…/SDL/src/main/mint
-I…/…/…/…/SDL/src/audio -I…/…/…/…/SDL/src/video
-I…/…/…/…/SDL/src/video/XFree86/extensions
-I…/…/…/…/SDL/src/events -I…/…/…/…/SDL/src/joystick
-I…/…/…/…/SDL/src/cdrom -I…/…/…/…/SDL/src/thread
-I…/…/…/…/SDL/src/timer -I…/…/…/…/SDL/src/endian
-I…/…/…/…/SDL/src/file -I…/…/…/src/thread -c
…/…/…/…/SDL/src/audio/mint/SDL_mintaudio_gsxb.c -MT
SDL_mintaudio_gsxb.lo -MD -MP -MF .deps/SDL_mintaudio_gsxb.TPlo -o
SDL_mintaudio_gsxb.o

/bin/sh …/…/…/libtool --mode=compile as -c -o SDL_mintaudio_it.lo
test -f ../../../../SDL/src/audio/mint/SDL_mintaudio_it.S || echo '../../../../SDL/src/audio/mint/'…/…/…/…/SDL/src/audio/mint/SDL_mint
audio_it.S
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `–tag’

It appears libtool uses the native ‘as’ assembler, instead of the
cross-compiler’s one (m68k-atari-mint-as in my case). I also checked some
autoconf stuff I wrote and that works. It seems you need to add a
AM_PROG_AS to configure.in, and maybe it would be also needed to migrate
configure.in to configure.ac with autoconf>2.5 and automake>1.7 when using
libtool 1.5 (but I may be wrong).–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

It appears libtool uses the native ‘as’ assembler, instead of the
cross-compiler’s one (m68k-atari-mint-as in my case). I also checked some
autoconf stuff I wrote and that works. It seems you need to add a
AM_PROG_AS to configure.in, and maybe it would be also needed to migrate
configure.in to configure.ac with autoconf>2.5 and automake>1.7 when using
libtool 1.5 (but I may be wrong).

Can you make the requisite configure.in changes, test them, and send a patch
directly to me?
Please don’t check it in, as the automake stuff is very delicate.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Can you make the requisite configure.in changes, test them, and send a patch
directly to me?
Please don’t check it in, as the automake stuff is very delicate.

OK, I will try as soon as possible.

Le Sun, 11 Jan 2004 15:50:23 -0800
Sam Lantinga a ?crit:

Can you make the requisite configure.in changes, test them, and send a
patch directly to me?
Please don’t check it in, as the automake stuff is very delicate.

Well, in fact after numerous tries, I manage to get where something was
failing: as seen in my first post, libtool was calling ‘as’ to assemble .S
into .lo and this is wrong: the rest of the command line is for
the gcc frontend. Thus, I just added a ‘AS=m68k-atari-mint-gcc’ to my
cross-configure script, and all was ok again. Sorry for the fear and
disturbance :-)–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux