cross compiling, pc files and `PKG_CONFIG_SYSROOT_DIR`

Enrico Weigelt weigelt at metux.de
Sat Jul 23 21:26:17 PDT 2011


* Paul Menzel <paulepanter at users.sourceforge.net> schrieb:
> Dear Enrico,
> 
> 
> thank you for answering all the messages.
> 
> 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.

Add the $SYSROOT prefix to the places where this variable is
actually used at *buildtime*, but *NOT* in places which go
somewhere to the output (eg. generating pathnames that are
built into the binary, .pc files, etc).


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt at metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


More information about the pkg-config mailing list