Date: Mon, 11 Apr 2005 23:08:14 +0200 From: Jose M Rodriguez <josemi@freebsd.jazztel.es> To: freebsd-ports@freebsd.org Cc: Scott Long <scottl@samsco.org> Subject: Re: mozilla's install hanging on amd64 Message-ID: <200504112308.15810.freebsd@redesjm.local> In-Reply-To: <200504111649.19678.mi%2Bmx@aldan.algebra.com> References: <200504102137.j3ALbm0h079084@corbulon.video-collage.com> <20050411194439.GA98521@isis.sigpipe.cz> <200504111649.19678.mi%2Bmx@aldan.algebra.com> 0.73a on corbulon.video-collage.com
index | next in thread | previous in thread | raw e-mail
El Monday 11 April 2005 22:49, Mikhail Teterin escribió:
> > patches for -march-related bugs welcome" (most reasonable IMNSHO)
>
> *All* patches are welcome -- including -march-related ones. That
> -march should work follows simply from the documented CPUTYPE setting
> and the bsd.cpu.mk "magic". Porters' handbook can help in
> _clarifying_ this, true.
>
> When mozilla compiles on amd64, plenty of warnings are thrown up
> regarding conversions between pointers and integers of different
> size. Could this be my problem -- exposed by some opteron-specific
> trick in gcc?
>
> -mi
>
Have you try firefox?
Can you try the attached patch?
Have you a real advantage using CPUTYPE? can you meter this?
--- patch mozilla begins here ---
--- /usr/HEAD/ports/www/mozilla/Makefile Wed Apr 6 22:25:05 2005
+++ www/mozilla/Makefile Mon Apr 11 23:04:02 2005
@@ -210,8 +210,10 @@
.endif
.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+= -O2
-CONFIGURE_ARGS+= --enable-optimize=-O2
+CFLAGS:= -O2 -fno-strict-aliasing ${CFLAGS:N-O*}
+.else
+CFLAGS:= -O ${CFLAGS:N-O*:N-m*}
+CONFIGURE_ARGS+= --enable-optimize=-O
.endif
.if !defined(WITHOUT_MENU_ENTRY)
--- patch mozilla ends here ---
--
josemi
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504112308.15810.freebsd>
