[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Problems with libraries that depend on other libraries
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] Problems with libraries that depend on other libraries |
Date: |
Mon, 17 Nov 2008 10:08:24 +0000 |
Hi Ned,
The first thing to check is that your SDL library did not install
any .la files. Do a find rootfs -name \*.la
If it did then you need to add this to the end of your %install section
in the spec file:
find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
The re-build/install SDL and try again.
Regards, Stuart
On Mon, 2008-11-17 at 00:55 -0800, Ned Konz wrote:
> I've built the SDL library and have installed it OK.
>
> Now I'd like to build an add-on library called SDL_image. The problem
> is that when the link stage occurs, the linker is looking at /usr/lib/
> libSDL.so (the one on my build system) instead of the one that's
> installed in the rootfs.
>
> I think this is because the configure (or make?) calls sdl-config
> (which was installed in rootfs/usr/bin) to find the libraries to link
> with; this is returning
>
> -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
>
> which is not what is needed (if sdl-config is to be called, it should
> be passed a proper --prefix path).
>
> Any ideas how I can fix this?
>
>
>
>
> _______________________________________________
> LTIB home page: http://bitshrine.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib