From 678bf1eca8c75d97f6f2bef0002bc0166ad716ac Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 14 Apr 2003 19:48:00 +0000 Subject: Do not enable -O2 optimization by default. Instead, allow the user to enable it by specifying -DWITH_OPTIMIZED_CFLAGS or definining WITH_OPTIMIZED_CFLAGS in /etc/make.conf. Note, this is the same flag mplayer users. Requested by: sobomax --- www/mozilla/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/mozilla/Makefile') diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile index 5e2b53870915..7650823984d9 100644 --- a/www/mozilla/Makefile +++ b/www/mozilla/Makefile @@ -155,7 +155,7 @@ ALL_TARGET= default CONFIGURE_ARGS+= --enable-reorder .endif -.if !defined(WITHOUT_OPTIMIZE) && ${ARCH} != "alpha" +.if defined(WITH_OPTIMIZED_CFLAGS) && ${ARCH} != "alpha" CFLAGS+= -O2 CONFIGURE_ARGS+= --enable-optimize=-O2 .endif @@ -180,7 +180,7 @@ pre-everything:: @${ECHO_MSG} " WITHOUT_LDAP=yes Disables LDAP support within the Mailnews module" @${ECHO_MSG} " WITHOUT_CHATZILLA=yes Disable the Chatzilla IRC module" @${ECHO_MSG} " WITH_JAVASCRIPT_DEBUGGER=yes Enable the DTD and JavaScript debuggers" - @${ECHO_MSG} " WITHOUT_OPTIMIZE=yes Disable -O2 optimization" + @${ECHO_MSG} " WITH_OPTIMIZED_CFLAGS=yes Enable -O2 optimization" @${ECHO_MSG} "" .if defined(WITH_CALENDAR) @${ECHO_MSG} "Calendar is still beta software." -- cgit v1.2.3