summaryrefslogtreecommitdiff
path: root/sysutils/cpuflags/files/cpuflags.Linux
blob: ce762152b74340973f294e369cf69f597c8cf7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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