]>
Commit | Line | Data |
---|---|---|
083c40eb AM |
1 | diff -ur dietlibc-0.30.org/findcflags.sh dietlibc-0.30/findcflags.sh |
2 | --- dietlibc-0.30.org/findcflags.sh 2005-04-23 13:47:18.000000000 +0200 | |
3 | +++ dietlibc-0.30/findcflags.sh 2007-02-06 22:24:17.449538250 +0100 | |
b633677b JB |
4 | @@ -1,8 +1,8 @@ |
5 | #!/bin/sh | |
32c22fbf | 6 | version=`${1:-gcc} -v 2>&1 |sed -n '/gcc version/ {s/gcc version //;p;}'` |
b633677b | 7 | case $version in |
32c22fbf | 8 | - 2.9*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=1 -malign-jumps=1 -malign-loops=1 -mpreferred-stack-boundary=2 ;; |
9 | - 3.0*) echo -march=i386 -Os -fomit-frame-pointer -malign-functions=1 -malign-jumps=1 -malign-loops=1 -mpreferred-stack-boundary=2 ;; | |
d47882b6 | 10 | - [34]*) echo -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2;; |
b633677b | 11 | - *) echo -O2 -pipe -fomit-frame-pointer ;; |
32c22fbf | 12 | + 2.9*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -malign-functions=1 -malign-jumps=1 -malign-loops=1 -mpreferred-stack-boundary=2 ;; |
13 | + 3.0*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -malign-functions=1 -malign-jumps=1 -malign-loops=1 -mpreferred-stack-boundary=2 ;; | |
d47882b6 | 14 | + [34]*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2;; |
b633677b JB |
15 | + *) echo -O2 ${OPTFLAGS} -pipe -fomit-frame-pointer ;; |
16 | esac | |
083c40eb AM |
17 | diff -ur dietlibc-0.30.org/Makefile dietlibc-0.30/Makefile |
18 | --- dietlibc-0.30.org/Makefile 2006-06-18 20:32:28.000000000 +0200 | |
19 | +++ dietlibc-0.30/Makefile 2007-02-06 22:25:12.368970500 +0100 | |
9f63293b JB |
20 | @@ -100,7 +100,7 @@ |
21 | ||
22 | profiling: $(OBJDIR)/libgmon.a $(OBJDIR)/pstart.o | |
23 | ||
24 | -CFLAGS=-pipe -nostdinc | |
25 | +CFLAGS=-pipe -nostdinc $(OPTFLAGS) | |
26 | CROSS= | |
27 | ||
28 | CC=gcc | |
083c40eb | 29 | @@ -132,14 +132,6 @@ |
4a44e353 AM |
30 | |
31 | LIBMATHOBJ=$(patsubst %,$(OBJDIR)/%,$(LIBMATH)) | |
32 | ||
33 | -ifeq ($(CFLAGS),-pipe -nostdinc) | |
34 | -CFLAGS+=-O -fomit-frame-pointer | |
35 | -endif | |
36 | - | |
083c40eb AM |
37 | -ifneq ($(DEBUG),) |
38 | -CFLAGS = -g | |
39 | -COMMENT = : | |
40 | -endif | |
a9a7fe95 | 41 | CFLAGS += -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls |
083c40eb AM |
42 | |
43 | PWD=$(shell pwd) |