Op 7 feb. 2012, om 14:04 heeft Andrei Gherzan het volgende geschreven:

> On Tue, Feb 7, 2012 at 14:12, Koen Kooi <[email protected]> wrote:
> 
> Op 7 feb. 2012, om 12:24 heeft Andrei Gherzan het volgende geschreven:
> 
> > Signed-off-by: Andrei Gherzan <[email protected]>
> > Signed-off-by: Sergey 'Jin' Bostandzhyan <[email protected]>
> > ---
> > meta/recipes-support/nspr/files/nspr.pc |   11 +++++++++
> > meta/recipes-support/nspr/nspr_4.8.9.bb |   36 
> > +++++++++++++++++++++++++++++++
> > 2 files changed, 47 insertions(+), 0 deletions(-)
> > create mode 100644 meta/recipes-support/nspr/files/nspr.pc
> > create mode 100644 meta/recipes-support/nspr/nspr_4.8.9.bb
> >
> > diff --git a/meta/recipes-support/nspr/files/nspr.pc 
> > b/meta/recipes-support/nspr/files/nspr.pc
> > new file mode 100644
> > index 0000000..c3aed84
> > --- /dev/null
> > +++ b/meta/recipes-support/nspr/files/nspr.pc
> > @@ -0,0 +1,11 @@
> > +os_libs=-lpthread -ldl
> > +prefix=/usr
> > +exec_prefix=/usr
> > +libdir=/usr/lib
> > +includedir=/usr/include
> 
> The above hardcodes an fs layout that isn't true for e.g. micro
> 
> 
> A pc was the only way to make js "see" nspr.  Actually it was Jin's idea and 
> i found it accurate for my use-case. 
> Koen, on micro how these hardcodes should look like?

You will problably need to replace them with OEPREFIX/OELIBDIR and do sed -i 
s:OEPREFIX:${prefix}:g *.pc in do_install_append.

regards,

Koen
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to