summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-27 23:00:30 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-27 23:00:30 +0000
commit1bc686433bd5dea7ef4b8b5d97cd9461f041b56f (patch)
tree46fd449741fbb14fa90fc11b2fd629d3034e65dc /autoconf
parentb3c334674ddf4671c22d750a612e91e481a33ac8 (diff)
downloadllvm-1bc686433bd5dea7ef4b8b5d97cd9461f041b56f.tar.gz
llvm-1bc686433bd5dea7ef4b8b5d97cd9461f041b56f.tar.bz2
llvm-1bc686433bd5dea7ef4b8b5d97cd9461f041b56f.tar.xz
Changes to support cross-compiling LLVM. The GenLibDeps.pl script needs to
have a compile-host version of "nm", not build-host. In order to effect this we must use autoconf to determine the correct "nm" to use and propagate that through the makefiles, through llvm-config and finally to GenLibDeps.pl as an optional argument. Patch contributed by Anton Korobeynikov. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 31185a04e1..3a40d9b134 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -357,6 +357,9 @@ AC_PROG_CXX(g++)
AC_PROG_FLEX
AC_PROG_BISON
+AC_PROG_NM
+AC_SUBST(NM)
+
dnl Check for the tools that the makefiles require
AC_CHECK_GNU_MAKE
AC_PROG_LN_S