summaryrefslogtreecommitdiffstats
path: root/llvm/autoconf/configure.ac
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
commiteca6f7320ee70a0cee0db83f055ce1832d449127 (patch)
tree3bc2ad34c4bbd0d588f08c9de067f99791818fbc /llvm/autoconf/configure.ac
parent390dd7eb7d51819dbe2a832f7dabab40ceb930ff (diff)
downloadbcm5719-llvm-eca6f7320ee70a0cee0db83f055ce1832d449127.tar.gz
bcm5719-llvm-eca6f7320ee70a0cee0db83f055ce1832d449127.zip
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! llvm-svn: 29368
Diffstat (limited to 'llvm/autoconf/configure.ac')
-rw-r--r--llvm/autoconf/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 31185a04e18..3a40d9b1346 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/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
OpenPOWER on IntegriCloud