Robert Sander wrote:
Package: graphviz-dev
Version: 2.2.1-1sarge1
Severity: important
Hi!
When compiling a program and linking it to graphviz libraries one need
to supply -L/usr/lib/graphviz and extend LD_LIBRARY_PATH with that
directory, otherwise linking and execution will fail.
Why are the libraries not stored in /usr/lib ?
Is that expected behaviour of the package?
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11-client-p4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages graphviz-dev depends on:
ii graphviz 2.2.1-1sarge1 rich set of graph drawing tools
-- no debconf information
Greetings
They are stored in an unusual place to avoid any potential for namespace
collisions in /usr/lib
on 10 varieties of Unix.
LD_LIBRARY_PATH is not recommended as it is a royal-pain for the user.
Instead I recommend use of --rpath
Using pkgconfig you can set this up with:
CFLAGS=`pkg-config libgvc --cflags` -Wall -g -O2
LDFLAGS=-Wl,--rpath -Wl,`pkg-config libgvc --variable=libdir`
`pkg-config libgvc --libs`
John
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]