cross compiling, pc files and `PKG_CONFIG_SYSROOT_DIR`

Paul Menzel paulepanter at users.sourceforge.net
Mon May 9 06:23:21 PDT 2011


Dear Enrico,


Am Freitag, den 06.05.2011, 22:22 +0200 schrieb Paul Menzel:

> Am Freitag, den 06.05.2011, 22:10 +0200 schrieb Enrico Weigelt:
> > * Paul Menzel <paulepanter at users.sourceforge.net> schrieb:
> > 
> > > So it is `datadir=/usr/share` but for cross compiling it should be `${PKG_CONFIG_SYSROOT_DIR}/usr/share`.
> > 
> > No, $datadir MUST NOT be prepended with the sysroot prefix.
> > This is the directory where static data will reside on the
> > (deployed) _target_ system.
> > 
> > The call in configure.ac is simply wrong.
> 
> Could you please advise what the correct call should be.

I am sorry to bug you again. A lot of GNOME programs which include
gnome-doc-utils exhibit this behavior and therefore it would be very
cumbersome to change all calls to be able to cross compile them.

LinuxTag 2011 is going to start on Wednesday. If you could propose
generic solution on how to determine the data directory when cross
compiling this would be great, since I could bring up this problem and
discuss proposed solutions directly with some developers.


Thanks,

Paul


[1] http://www.linuxtag.org/2011/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20110509/1d44534d/attachment.pgp>


More information about the pkg-config mailing list