[Buildroot] toolchain problem:wrong path in libSDL.la

Jens irimi at gmx.de
Tue Jan 19 16:32:47 UTC 2010


Hi,

I'm using recent version 2009.11 and I've added SDL package to my 
configuration.

My br installation is at /mnt/ext3data/buildroot/

but br creates a wrong path of libdir in libSDL.la
(/mnt/ext3data/buildroot/output/build/SDL-1.2.14/build/libSDL.la
resp. /mnt/ext3data/buildroot/output/build/staging_dir/usr/lib/libSDL.la):
--- cut ---
# Libraries that this one depends upon.
dependency_libs=' 
-L/mnt/ext3data/buildroot/output/build/staging_dir/usr/lib 
/mnt/ext3data/buildroot/output/build/staging_dir/usr/lib/libiconv.la 
-L/mnt/ext3data/buildroot/output/build/staging_dir/lib -lm 
/mnt/ext3data/buildroot/output/build/staging_dir/usr/lib/libts.la -ldl 
-lpthread'
# Directory that this library needs to be installed in:
libdir='/mnt/ext3data/buildroot/output/build/staging_dir/usr/mnt/ext3data/buildroot/output/build/staging_dir/usr/lib'
--- cut ---

Of course the correct path at my machine is 
'/mnt/ext3data/buildroot/output/build/staging_dir/usr/lib'
That makes it impossible to link applications that require the SDL lib, 
it leads to an linker error:  i.e. 'could not find SDL lib'

I checked older br versions , but same problem. Also an update (I 
switched to newer versions in br scripts) of SDL lib didn't help it nor 
update of libtool (as far as I understood that creates the *.la files !?).

BR,
Jens



More information about the buildroot mailing list