summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2004-04-01 19:44:59 +0000
committerabs <abs@pkgsrc.org>2004-04-01 19:44:59 +0000
commitb93e7e77224d59977adf8086c441b13a57c3a001 (patch)
treefcf6d2cb7ca4be15656a5445748da9638b3095f4 /devel
parent17d189edb1d86aef747767921fbdf26a7293389f (diff)
downloadpkgsrc-b93e7e77224d59977adf8086c441b13a57c3a001.tar.gz
Update cpuflags to 0.65.
Use -dumpversion with gcc rather than mangling -v output. Suggested by mrg. Located copy of egcs to confirm output still correctly mangled in that case :)
Diffstat (limited to 'devel')
-rw-r--r--devel/cpuflags/Makefile4
-rwxr-xr-xdevel/cpuflags/files/cpuflags.NetBSD4
2 files changed, 4 insertions, 4 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile
index e33761549cc..dd083feeda4 100644
--- a/devel/cpuflags/Makefile
+++ b/devel/cpuflags/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.68 2004/04/01 19:37:59 abs Exp $
+# $NetBSD: Makefile,v 1.69 2004/04/01 19:44:59 abs Exp $
#
-DISTNAME= cpuflags-0.64
+DISTNAME= cpuflags-0.65
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD
index 0852bb06c73..6a4d0eb887a 100755
--- a/devel/cpuflags/files/cpuflags.NetBSD
+++ b/devel/cpuflags/files/cpuflags.NetBSD
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: cpuflags.NetBSD,v 1.46 2004/04/01 19:37:59 abs Exp $
+# $NetBSD: cpuflags.NetBSD,v 1.47 2004/04/01 19:44:59 abs Exp $
if [ -x /sbin/sysctl ] ;then
SYSCTL=/sbin/sysctl
@@ -172,7 +172,7 @@ fi
# gcc_version_in_which_option_was_introduced new_option old_option
if [ -n "$FLAGS" ]; then
- gcc_ver=`${CC} -v 2>&1 | awk '/gcc version/ {sub("egcs-","");print $3}'`
+ gcc_ver=`${CC} -dumpversion | sed 's/^egcs-//'`
FLAGS=`awk -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" '
{ if (gcc_ver < $1){map[$2] = ""$3} }
END { while (flags in map) {flags = map[flags]} print flags }