[gobolinux-devel] LibRSVG and NSPR
Giambattista Bloisi
giamby at infinito.it
Fri Feb 1 11:28:38 NZDT 2008
Lucas C. Villa Real wrote:
> On Jan 31, 2008 1:26 PM, Giambattista Bloisi <giamby at infinito.it> wrote:
>
>> Hi,
>> I had an error while compiling LibRSVG (mozilla plugin) because the
>> compiler was not able to found an include file of the nspr library.
>> It was the "classic" issue of the file put into a subfolder so not
>> directly reachable by gcc.
>>
>> Here my workaround:
>>
>> environment=(
>> "CFLAGS=$CFLAGS -I$goboHeaders/nspr"
>> )
>>
>> What about it ?
>> Should I commit it ?
>>
>
> Ideally, that fix should be made to NSPR's pkgconfig/libtool files (in
> the recipe, in the pre_link() stage). You can commit your workaround,
> though, but feel very welcome to hack on NSPR's recipe if you have the
> time to do that, too.
>
>
The NSPR recipe seems ok: it installs a correct nspr.pc file into the
$target dir.
The problem is that the content of this file changes after SymlinkProgram.
From:
prefix=/Programs/NSPR/4.6.7
exec_prefix=/Programs/NSPR/4.6.7
libdir=${prefix}/lib
includedir=${prefix}/include
Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.7
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
Cflags: -I${includedir}/nspr
It becames:
prefix=/usr
exec_prefix=/usr
[... same content]
I guess SymlinkProgram calls pkg-config with wrong parameters.
G.
More information about the gobolinux-devel
mailing list