summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-04-29 14:26:47 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-04-29 14:26:47 +0000
commitc7b050978fab8c91a1bde44d92174f74e6ac7121 (patch)
tree31797812c070d915792d4d3034ac22dd2fc51f99 /gnu/usr.bin
parent65baaf07a5db9eea322dac5c02f783630761f248 (diff)
Ignore file info on nm output when looking for global functions to hide.
'looks reasonable' kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/libgcc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile
index 1f321a93ca1..467e25d1610 100644
--- a/gnu/usr.bin/cc/libgcc/Makefile
+++ b/gnu/usr.bin/cc/libgcc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.4 2010/04/29 03:41:51 marco Exp $
+# $OpenBSD: Makefile,v 1.5 2010/04/29 14:26:46 drahn Exp $
.include <bsd.own.mk>
@@ -248,7 +248,7 @@ ${ASM_V}: ${LIB1ASMSRC}
${CC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} \
-o ${.PREFIX}.vo ${.ALLSRC:N*.h}
( nm -pg ${.PREFIX}.vo | \
- awk 'NF == 3 && $$2 !~ /^[UN]$$/ { print "\t.hidden ", $$3 }'\
+ awk 'NF == 3 && $$2 !~ /^[FUN]$$/ { print "\t.hidden ", $$3 }'\
) > ${.TARGET}
CLEANFILES += ${ASM_V} ${ASM_V:R:S/$/.vo/}