diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cpuflags/files/cpuflags.1 | 38 | ||||
-rwxr-xr-x | sysutils/cpuflags/files/cpuflags.Linux | 18 |
2 files changed, 0 insertions, 56 deletions
diff --git a/sysutils/cpuflags/files/cpuflags.1 b/sysutils/cpuflags/files/cpuflags.1 deleted file mode 100644 index 11a13a643aa..00000000000 --- a/sysutils/cpuflags/files/cpuflags.1 +++ /dev/null @@ -1,38 +0,0 @@ -.\" $NetBSD: cpuflags.1,v 1.1.1.1 2001/05/31 11:29:17 abs Exp $ - -.Dd May 31, 2001 -.Dt CPUFLAGS 1 -.Os -.Sh NAME -.Nm cpuflags -.Nd determine compiler flags to best target current cpu -.Sh SYNOPSIS -.Nm -.Sh DESCRIPTION -.Nm -queries the current cpu type and gcc version, then outputs appropriate -compiler options to best target code for that cpu. If no options exist -to target the current cpu then nothing is output. -.Pp -In the event of the cpu not being recognised, a warning is sent to stderr. -.Pp -.Sh EXAMPLES -.Nm -can be used to set default flags for building entries from pkgsrc and -recompiling the NetBSD kernel or userland by adding the following to -.Pa /etc/mk.conf -.Bd -literal -offset indent - .if ! defined(CPU_FLAGS) && exists(/usr/pkg/bin/cpuflags) - CPU_FLAGS!=/usr/pkg/bin/cpuflags - MAKE_ENV+=CPU_FLAGS=${CPU_FLAGS} - CFLAGS+=${CPU_FLAGS} - CXXFLAGS+=${CPU_FLAGS} - .endif -.Ed -.Sh BUGS -.Nm -does not know about many cpu types yet - updates welcomed to <abs@netbsd.org> -.Pp -Currently -.Nm -is also gcc specific. diff --git a/sysutils/cpuflags/files/cpuflags.Linux b/sysutils/cpuflags/files/cpuflags.Linux deleted file mode 100755 index ce762152b74..00000000000 --- a/sysutils/cpuflags/files/cpuflags.Linux +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# $NetBSD: cpuflags.Linux,v 1.1.1.1 2001/05/31 11:29:17 abs Exp $ - -hw_model=`uname -m` - -case $hw_model in - # i386 - i386*) FLAGS='-march=i386' ;; - i486*) FLAGS='-march=i486' ;; - i586*) FLAGS='-march=pentium' ;; - i686*) FLAGS='-march=pentiumpro' ;; - # - *) echo "Unknown hw.model '$hw_model'" >&2 -esac - -echo $FLAGS - -exit 0 |