diff doc/index.html @ 1504:dfa937baa17b

improved pkg-config wrapper and its documentation
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 13 Dec 2010 14:41:32 +0100
parents f4ddc2aa91e3
children ad027e5187f1
line wrap: on
line diff
--- a/doc/index.html	Mon Dec 13 03:18:09 2010 +1100
+++ b/doc/index.html	Mon Dec 13 14:41:32 2010 +0100
@@ -304,7 +304,19 @@
     <pre>export PATH=/<em>where mingw-cross-env is installed</em>/usr/bin:$PATH</pre>
 
     <p>
-    Note that any compiler related environment variables
+    In case you are using custom $PKG_CONFIG_PATH entries,
+    you can add separate entries for MinGW cross builds:
+    </p>
+    <pre>export PKG_CONFIG_PATH="<em>entries for native builds</em>"</pre>
+    <pre>export PKG_CONFIG_PATH_<span class="target-underscore">i686_pc_mingw32</span>="<em>entries for mingw-cross-env builds</em>"</pre>
+    <p>
+    Remember to use <span class="target">i686-pc-mingw32</span>-pkg-config
+    instead of pkg-config for cross builds.
+    The Autotools do that automatically for you.
+    </p>
+
+    <p>
+    Note that any other compiler related environment variables
     (like $CC, $LDFLAGS, etc.)
     may spoil your compiling pleasure,
     so be sure to delete or disable those.
@@ -363,7 +375,8 @@
     </p>
     <pre>CC=$(CROSS)gcc
 LD=$(CROSS)ld
-AR=$(CROSS)ar</pre>
+AR=$(CROSS)ar
+PKG_CONFIG=$(CROSS)pkg-config</pre>
     <p>
     You may have to add a few others, depending on your project.
     </p>