Replace a bare use of nm with ${NM} for easier cross compilation in
environments where nm is spelled differently.
This commit is contained in:
parent
8ed34ab00d
commit
01712ae93a
@ -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/' \
|
||||
|
Loading…
Reference in New Issue
Block a user