summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2020-06-16 10:13:52 -0700
committerRalph Giles <giles@thaumas.net>2020-06-16 10:58:21 -0700
commit5fd186e2a5bc45dfd3ff2248e5d6247f7567c3dd (patch)
tree6f72aaf50c6265950baef3fbd9ae4723a6464626
parentf1c1e4451c650008cc5549b08c10fe9ad8ddb1fa (diff)
downloadlibvorbis-git-5fd186e2a5bc45dfd3ff2248e5d6247f7567c3dd.tar.gz
autotools: Use AC_CANONICAL_HOST
We were calling AC_CANONICAL_TARGET in configure.ac under the mistaken impression that this allowed setting the target architecture for cross-compilation output. However, in GNU terminology the system type that this the target of cross-compilation is the "host" and "target" is reserved for setting what the output of the compiled application should itself target, when compiling a cross-compiler. Finally "build" is the system type the build system is itself running under. So to cross-compile, one invokes `./configure --host ...` not `--target`. In any case, we only make use of the `host` variable, so that is the macro we need to invoke to provide it. Thanks to Maarten Bosmans for reporting the issue. Signed-off-by: Marvin Scholz <epirat07@gmail.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 28b0a141..4e934593 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([lib/mdct.c])
-AC_CANONICAL_TARGET([])
+AC_CANONICAL_HOST
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE