[PATCH libX11 2/2] config: Check host string when deciding architecture to build for

Dan Nicholson dbn.lists at gmail.com
Sat Nov 6 06:58:10 PDT 2010


When checking for the OS/2 platform, $target_os is used. However, unless
building a cross compiler, the $host* strings contain the platform
details for the build system. See:

http://www.gnu.org/software/automake/manual/automake.html#Cross_002dCompilation

$host_os is already being used to determine the transport and threading
options.

Signed-off-by: Dan Nicholson <dbn.lists at gmail.com>
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 01f43fb..a37a7b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,7 +246,7 @@ dnl AC_PATH_XTRA
 
 # arch specific things
 WCHAR32="1"
-case $target_os in
+case $host_os in
   os2*) os2="true" ; WCHAR32="0" ;;
   *) ;;
 esac
-- 
1.7.2.3



More information about the xorg-devel mailing list