Skip to content

Commit 3f50493

Browse files
tamirddavidtgoldblatt
authored andcommitted
Allow toolchain to determine nm
1 parent ef55006 commit 3f50493

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,11 @@ AN_PROGRAM([ar], [AC_PROG_AR])
511511
AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
512512
AC_PROG_AR
513513

514+
AN_MAKEVAR([NM], [AC_PROG_NM])
515+
AN_PROGRAM([nm], [AC_PROG_NM])
516+
AC_DEFUN([AC_PROG_NM], [AC_CHECK_TOOL(NM, nm, :)])
517+
AC_PROG_NM
518+
514519
AC_PROG_AWK
515520

516521
dnl Platform-specific settings. abi and RPATH can probably be determined
@@ -522,7 +527,7 @@ dnl definitions need to be seen before any headers are included, which is a pain
522527
dnl to make happen otherwise.
523528
default_retain="0"
524529
maps_coalesce="1"
525-
DUMP_SYMS="nm -a"
530+
DUMP_SYMS="${NM} -a"
526531
SYM_PREFIX=""
527532
case "${host}" in
528533
*-*-darwin* | *-*-ios*)

0 commit comments

Comments
 (0)