On Thu, 28 Jun 2012, Tollef Fog Heen wrote:
> ]] Cristian Ionescu-Idbohrn
>
> > Expected is either:
> >
> > /usr/lib/x86_64-linux-gnu
> >
> > or:
> >
> > /usr/lib/i386-linux-gnu
>
> Those are part of the default search path for your compiler, so they are
> dropped.
Sorry, that's too dense for me ;)
If /usr/lib/i386-linux-gnu/pkgconfig/libdivecomputer.pc lists:
libdir=${prefix}/lib/i386-linux-gnu
and that's exactly where the a-lib _and_ so-lib are, why should I see a
SPACE string result? `man 1 pkg-config':
--libs-only-L
This prints the -L/-R part of "--libs". That is, it defines
the library search path but doesn't specify which
libraries to link with.
Why shouldn't that work as advertised? Looks like a bug, if you ask me.
> > libdc-usr := $$(pkg-config --libs-only-L
> > libdivecomputer)/libdivecomputer.a
>
> I dislike static linking, but doing
>
> libdc-usr := $$(pkg-config --variable=libdir
> libdivecomputer)/libdivecomputer.a
>
> should give you what you expect.
So that should work for dynamic libraries too. Testing...
And it does ;) So the answer is:
libdc-usr := $$(pkg-config --variable=libdir libdivecomputer)/libdivecomputer.so
No 'libdc-usr64' should be needed.
Khalid,
Will you be willing to take that up with upstream?
Modify the debian patch? Should I file a bug on thet?
Thanks for the tip, Tollef.
--
Cristian
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]