--- In "Dunge2" <> wrote:
> How to get past that? Modify every .pc file at hand, and then re-modify them
> back to what they are now when you finished cross-compiling everything?
You're right...I just looked at how I did some other cross compilation (ia64 to
i386) and I actually set the prefix to something other than /usr when cross
compiling stuff and didn't use DESTDIR. (I did still use PKG_CONFIG_PATH and
PKG_CONFIG_LIBDIR). That allowed pkgconfig to work correctly even when cross
compiling.
You could change the --prefix to be your sys-root, although it may cause some
libraries to get confused at runtime if they use that prefix to open config
files, etc.
You could also change the --prefix to be something different from /usr but
common between your development and target system.
e.g. compile with --prefix=/opt/cross, and then copy the /opt/cross folder from
your development system to your target system, also calling it /opt/cross on
the target system. Then add the correct directories to LD_LIBRARY_PATH on the
target system.
Or, as you said earlier, I would assume that changing the .pc files manually
would also suffice. I believe they're only necessary for compiling anyway, so
they probably don't even need to be on the target system. This is probably what
I would do honestly. I'm pretty sure it would work just fine.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|