summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-06-07 11:24:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-06-07 11:24:27 +0000
commit99a4bfdc80eba3784f6bb1690a9d02cc7e02de72 (patch)
tree0c2fb8579a34058018bdf8e281b326cfeb184525
parented8b9b178780a0085e20908bcce9f2d9152107ca (diff)
downloaddrakx-99a4bfdc80eba3784f6bb1690a9d02cc7e02de72.tar
drakx-99a4bfdc80eba3784f6bb1690a9d02cc7e02de72.tar.gz
drakx-99a4bfdc80eba3784f6bb1690a9d02cc7e02de72.tar.bz2
drakx-99a4bfdc80eba3784f6bb1690a9d02cc7e02de72.tar.xz
drakx-99a4bfdc80eba3784f6bb1690a9d02cc7e02de72.zip
- fix build on gcc 3.4
- much nicer detection of wether $ARCH/Makefile.add modifies CFLAGS or not
-rw-r--r--mdk-stage1/dietlibc/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/Makefile b/mdk-stage1/dietlibc/Makefile
index 0fe32e61b..ec994895f 100644
--- a/mdk-stage1/dietlibc/Makefile
+++ b/mdk-stage1/dietlibc/Makefile
@@ -90,7 +90,7 @@ all: $(WHAT)
profiling: $(OBJDIR)/libgmon.a $(OBJDIR)/pstart.o
-CFLAGS=-pipe -nostdinc
+CFLAGS=-pipe -nostdinc -fno-builtin
CROSS=
CC=gcc
@@ -117,11 +117,12 @@ LIBPTHREAD_OBJS=$(patsubst libpthread/%.c,$(OBJDIR)/%.o,$(shell ./threadsafe.sh)
LIBGMON_OBJS=$(OBJDIR)/__mcount.o $(OBJDIR)/monitor.o $(OBJDIR)/profil.o
+ORIG_CFLAGS := $(CFLAGS)
include $(ARCH)/Makefile.add
LIBMATHOBJ=$(patsubst %,$(OBJDIR)/%,$(LIBMATH))
-ifeq ($(CFLAGS),-pipe -nostdinc)
+ifeq ($(CFLAGS),$(ORIG_CFLAGS))
CFLAGS+=-O -fomit-frame-pointer
endif