diff options
author | abs <abs> | 2004-04-01 19:44:59 +0000 |
---|---|---|
committer | abs <abs> | 2004-04-01 19:44:59 +0000 |
commit | f239fa69d48c57acd64ecb0f6a9ff8c08e68dbea (patch) | |
tree | fcf6d2cb7ca4be15656a5445748da9638b3095f4 /devel | |
parent | 0a4abae7129b00779f1964a513a8ae6780b01a2e (diff) | |
download | pkgsrc-f239fa69d48c57acd64ecb0f6a9ff8c08e68dbea.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/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.NetBSD | 4 |
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 } |