On 04/02/2013 11:49 AM, Rob Godfrey wrote:
On 2 April 2013 12:47, Rob Godfrey <[email protected]> wrote:
On 2 April 2013 12:27, Gordon Sim <[email protected]> wrote:
On 04/02/2013 10:58 AM, Rob Godfrey wrote:
$ cat /usr/lib/x86_64-linux-gnu/**pkgconfig/nspr.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib/x86_64-linux-**gnu
includedir=${prefix}/include/**nspr
Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.9.5
Libs: -L/usr/lib/x86_64-linux-gnu -lplds4 -lplc4 -lnspr4
Cflags: -I${prefix}/include/nspr
The only thing I can think of is that pkg-config is erroneously removing
the lib dir because it thinks it is on the default linker path.
If you set the PKG_CONFIG_ALLOW_SYSTEM_LIBS variable, what does
`pkg-config --libs nspr` give then?
$ export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
$ pkg-config --libs nspr
-L/usr/lib/x86_64-linux-gnu -lplds4 -lplc4 -lnspr4
Oops - missed off the vital part in that copy and paste operation :-)
Phew! I thought it was not giving any output in that case, which was
even more mysterious!
That experiment seems to confirm that /usr/lib/x86_64-linux-gnu is being
excluded due to the (incorrect) assumption that it is on the default
link path.
If set before cmake is run, does that variable allow the build to work
or does it result in other issues?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]