]>
Commit | Line | Data |
---|---|---|
b633677b JB |
1 | --- dietlibc-0.20/findcflags.sh.orig Wed Jul 3 16:07:58 2002 |
2 | +++ dietlibc-0.20/findcflags.sh Sun Aug 25 01:12:32 2002 | |
3 | @@ -1,8 +1,8 @@ | |
4 | #!/bin/sh | |
5 | version=`${1:-gcc} -v 2>&1 |grep version|sed 's/gcc version //'` | |
6 | case $version in | |
7 | - 2.9*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; | |
8 | - 3.0*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; | |
9 | - 3*) echo -Os -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -mpreferred-stack-boundary=2;; | |
10 | - *) echo -O2 -pipe -fomit-frame-pointer ;; | |
11 | + 2.9*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; | |
12 | + 3.0*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mpreferred-stack-boundary=2 ;; | |
13 | + 3*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -mpreferred-stack-boundary=2;; | |
14 | + *) echo -O2 ${OPTFLAGS} -pipe -fomit-frame-pointer ;; | |
15 | esac |