From 9f63293b9d7f588bcf43d70289f273c546eb91ee Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 30 Dec 2006 22:34:31 +0000 Subject: [PATCH] - findcflags.sh is used only in i386; allow passing OPTFLAGS elsewhere too Changed files: dietlibc-opt.patch -> 1.4 --- dietlibc-opt.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dietlibc-opt.patch b/dietlibc-opt.patch index c823bb8..b66f0be 100644 --- a/dietlibc-opt.patch +++ b/dietlibc-opt.patch @@ -13,3 +13,14 @@ + [34]*) echo ${OPTFLAGS} -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2;; + *) echo -O2 ${OPTFLAGS} -pipe -fomit-frame-pointer ;; esac +--- dietlibc-0.30/Makefile.orig 2006-12-30 22:22:02.000000000 +0000 ++++ dietlibc-0.30/Makefile 2006-12-30 22:29:57.000000000 +0000 +@@ -100,7 +100,7 @@ + + profiling: $(OBJDIR)/libgmon.a $(OBJDIR)/pstart.o + +-CFLAGS=-pipe -nostdinc ++CFLAGS=-pipe -nostdinc $(OPTFLAGS) + CROSS= + + CC=gcc -- 2.43.0