Force -O0 on powerpc to fix the build.

With -O2 (and -O1), it fails with:

/usr/obj/ports/samba-3.5.3/samba-3.5.3/source3/smbd/smb2_create.c: In function 
`smbd_smb2_create_send':
/usr/obj/ports/samba-3.5.3/samba-3.5.3/source3/smbd/smb2_create.c:713: internal 
compiler error: in emit_move_insn, at expr.c:3202

I also ran `make regress', but it only compiles and links some programs.
Is there some way to run some *real* tests on samba?

Ciao,
        Kili

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.113
diff -u -p -r1.113 Makefile
--- Makefile    20 May 2010 18:16:39 -0000      1.113
+++ Makefile    24 May 2010 18:06:58 -0000
@@ -79,6 +79,10 @@ CONFIGURE_ARGS=              --disable-fam \
 # Uncomment to enable debugging symbols.
 #CONFIGURE_ARGS+=      --enable-debug
 
+.if ${MACHINE_ARCH:Mpowerpc}
+CFLAGS +=              -O0
+.endif
+
 LDFLAGS+=              -L${LOCALBASE}/lib -Wl,--export-dynamic 
-Wl,--no-as-needed
 CONFIGURE_ENV=         CPPFLAGS+="-I${LOCALBASE}/include" LDFLAGS="${LDFLAGS}"
 

Reply via email to