[SDL] Problem building sample program

Gianluca gianlucarenzi at eptar.com
Wed Mar 5 01:40:51 PST 2008


On Wednesday 05 March 2008 10:21, David Annett wrote:
> david at rabota:~/Dev/temp/test$ make
> gcc  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c testver.c
> gcc  -L/usr/lib -lSDL -o testver testver.o
> /usr/local/bin/ld: unrecognized option '--hash-style=both'
> /usr/local/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
> make: *** [testver] Error 1
> I have no idea where '--hash-style=both' is coming from!
May be wrong compiler?
I was able to compile all sdl stuff, using arm-linux-gcc 3.4.1 with no problem.
I am using cross compile linux kernel using arm-elf-gcc 4.1, but all applications
(rootfs, busybox, sdl, nano-X, ...) are cross compiled with arm-linux-gcc 3.4.1 flawlessy.
I never tried to use arm-elf-gcc 4.1 to cross compile other than kernel, so
I dunno if it can be a problem here.

Best regards,
-- 
Gianluca Renzi


More information about the SDL mailing list