[vlc-devel] Re: iPaq cross-compile problem (urgent)

Jean-Paul Saman saman at natlab.research.philips.com
Tue Oct 15 13:36:31 CEST 2002


Samuel Hocevar wrote:
> On Tue, Oct 15, 2002, Jean-Paul Saman wrote:
> 
> 
>>What happens? If I built with plugins enabled the linking of SDL against 
>>lpthread fails, the linker complains about /usr/lib/libpthread.so.
> 
> 
>    Try to change the sdl-config call in configure to add the
> --exec-prefix=<cross-compile-dir> flag before --libs.
> 
Shouldn't that be --prefix=<cross-compile-dir>? and --exec-prefix is for 
where it is runtime availble, or am I wrong?

> 
>>How to tell the linker to link against:
>> <cross-compile-dir>/lib/lipthread.so
>>and have it run on a system where the library is located in 
>>/lib/libpthread.so?
> 
> 
>    The place where the linker will look for library symbols at compile
> time has nothing to do with the place where the dynamic linker will look
> for libraries at runtime. You can safely add -L<cross-compile-dir>/lib,
> your binary will still look for /lib/libpthread.so at runtime.
> 

I'll try this!

-- 
Kind greetings,

Jean-Paul Saman

Software Architect

e-mail (work): saman at natlab.research.philips.com
phone  (work): 040 27 42909
------------------------------------------------------------
Ordina TA,
Science Park Eindhoven 5602, Postbus 293, 5600 AG Eindhoven
e-mail : jean-paul.saman at ordina.nl
phone  : 040 2601200
fax    : 040 2601199

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list