Stop abusing OPTIM for anything, use CFLAGS instead, as recommended by

Apache configure.
Build with full expat, some modules require it.

PR:             46786
This commit is contained in:
Andrey A. Chernov 2003-02-16 05:58:22 +00:00
parent 899502befd
commit cbdec97420
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75637
2 changed files with 13 additions and 9 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= apache
PORTVERSION= 1.3.27
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.apache.org/dist/httpd/ \
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/httpd/ \
@ -33,6 +33,7 @@ DISTNAME= apache_${PORTVERSION}
MAINTAINER= ache@freebsd.org
LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2
USE_PERL5= yes
DATADIR=${PREFIX}/www
@ -81,33 +82,36 @@ CONFIGURE_ARGS+= \
--with-layout=FreeBSD \
--without-confadjust \
--enable-module=most \
--enable-rule=EXPAT \
--enable-module=auth_db \
--enable-module=mmap_static \
--disable-module=auth_dbm \
--enable-shared=max \
${SUEXEC_CONF}
OPTIM= -DDOCUMENT_LOCATION=\\"${DOCUMENT_ROOT}\\" \
-DDEFAULT_PATH=\\"${DEFAULT_PATH}\\"
CFLAGS+=-DDOCUMENT_LOCATION='\"${DOCUMENT_ROOT}\"' \
-DDEFAULT_PATH='\"${DEFAULT_PATH}\"'
#
# Set APACHE_HARD_SERVER_LIMIT env. variable to desired value
#
.if defined(APACHE_HARD_SERVER_LIMIT)
OPTIM+= -DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}
CFLAGS+=-DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}
.else
OPTIM+= -DHARD_SERVER_LIMIT=512
CFLAGS+=-DHARD_SERVER_LIMIT=512
.endif
#
# Set WITH_APACHE_PERF_TUNING env. variable to YES to get maximum performance
#
.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
OPTIM+= -DBUFFERED_LOGS
CFLAGS+= -O6 -fomit-frame-pointer
CFLAGS+=-DBUFFERED_LOGS
CFLAGS+=-O6 -fomit-frame-pointer
.endif
CONFIGURE_ENV= OPTIM='${OPTIM}' LD_SHLIB='${CC}'
CONFIGURE_ENV= OPTIM='${OPTIM}' LD_SHLIB='${CC}' LIBS='${LIBS}' \
INCLUDES=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \

View File

@ -3,4 +3,4 @@ server version 1.3 (or 1.4). It fixes numerous bugs in the NCSA server and
includes many frequently requested new features, and has an API which
allows it to be extended to meet users' needs more easily.
WWW: http://www.apache.org/
WWW: http://httpd.apache.org/