[snip]
> > btw i noticed in the build log that some parts are being built with the
> > -O3 flag which we try to avoid in general. so maybe you can get rid of
> > that and try to honor CFLAGS.

Here's two patches that changes the -O3 instances to -O2.

/ Jon
$OpenBSD$
--- erts/emulator/Makefile.in.orig      Mon Mar 27 19:50:58 2006
+++ erts/emulator/Makefile.in   Mon Mar 27 19:51:43 2006
@@ -129,7 +129,7 @@ STRIP   = strip
 PERL    = @PERL@
 
 ifeq ($(CC), gcc)
-GEN_OPT_FLGS = -O3 -fomit-frame-pointer
+GEN_OPT_FLGS = -O2 -fomit-frame-pointer
 UNROLL_FLG = -funroll-loops
 else
 ifeq ($(TARGET), win32)
@@ -672,7 +672,7 @@ $(OBJDIR)/%.o: hipe/%.S
        $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
 
 $(OBJDIR)/%.o: hipe/%.c
-       $(CC) $(subst O2,O3, $(CFLAGS)) $(INCLUDES) -c $< -o $@
+       $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
 
 $(BINDIR)/hipe_mkliterals$(TYPEMARKER):        $(OBJDIR)/hipe_mkliterals.o
        $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
$OpenBSD$
--- erts/emulator/zlib/Makefile.in.orig Mon Mar 27 21:02:59 2006
+++ erts/emulator/zlib/Makefile.in      Mon Mar 27 21:03:37 2006
@@ -15,7 +15,7 @@ ARFLAGS = rc
 ifeq ($(findstring ose,$(TARGET)),ose)
   TYPE_FLAGS =
 else
-  TYPE_FLAGS = -O3
+  TYPE_FLAGS = -O2
 endif
 CFLAGS = @CFLAGS@ @DEFS@ @EMU_THR_DEFS@ $(TYPE_FLAGS)
 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7

Reply via email to