[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-shlibdeps and private libraries



On Tue, 2007-11-06 at 08:51 +0100, Andreas Tille wrote:
<snip>
> Could anybody enlighten me what compiler options I have to give to
> enable compile time and runtime correctly working.  I tried
> 
>      g++ ... -Lrpath /usr/lib/arb/lib ...  -L<pkg-build-dir>/lib
> 
> which just caused
> 
>      /usr/bin/ld: /usr/lib/arb/lib: No such file: File format not recognized
> 
> I obviousely missinterpreted the docs and wonder what might be the
> right approach.

You should use "-Wl,-rpath -Wl,/usr/lib/arb/lib" instead of
"-Lrpath /usr/lib/arb/lib".

Ben.

-- 
Ben Hutchings
Make three consecutive correct guesses and you will be considered an expert.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: