aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2012-04-21 16:02:00 +0000
committerWarner Losh <imp@FreeBSD.org>2012-04-21 16:02:00 +0000
commit01712ae93aa01ed8ec3bf082793dfd647e2eaf3e (patch)
tree9d8cde77ff07aa531fdb3c4d3c4839c33e36983c /gnu/lib
parent8ed34ab00dc684db97a9e5ba466fa7142fbfc7d2 (diff)
downloadsrc-01712ae93aa01ed8ec3bf082793dfd647e2eaf3e.tar.gz
src-01712ae93aa01ed8ec3bf082793dfd647e2eaf3e.zip
Replace a bare use of nm with ${NM} for easier cross compilation in
environments where nm is spelled differently.
Notes
Notes: svn path=/head/; revision=234546
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libgcc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 2296d19d5209..47829ca3bd28 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -276,7 +276,7 @@ ${ASM_S}: ${LIB1ASMSRC}
${ASM_V}: ${LIB1ASMSRC}
${CC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} \
-o ${.PREFIX}.vo ${.ALLSRC:N*.h}
- ( nm -pg ${.PREFIX}.vo | \
+ ( ${NM} -pg ${.PREFIX}.vo | \
awk 'NF == 3 && $$2 !~ /^[UN]$$/ { print "\t.hidden ", $$3 }'\
) > ${.TARGET}
@@ -325,7 +325,7 @@ SHLIB_MAPFILES = ${GCCDIR}/libgcc-std.ver
VERSION_MAP = libgcc.map
libgcc.map: ${SHLIB_MKMAP} ${SHLIB_MAPFILES} ${SOBJS} ${OBJS:R:S/$/.So/}
- ( nm -pg ${SOBJS};echo %% ; \
+ ( ${NM} -pg ${SOBJS};echo %% ; \
cat ${SHLIB_MAPFILES} \
| sed -e '/^[ ]*#/d' \
-e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \