Lines 112-117
Link Here
|
112 |
local modtype |
112 |
local modtype |
113 |
if useq static-modules; then |
113 |
if useq static-modules; then |
114 |
modtype="static" |
114 |
modtype="static" |
|
|
115 |
|
116 |
# This will save RAM that's allocated only for supporting dynamically |
117 |
# loaded modules (we are using static modules, so we do not need to allocate extra RAM). |
118 |
CFLAGS="${CFLAGS} -DDYNAMIC_MODULE_LIMIT=0" |
115 |
else |
119 |
else |
116 |
modtype="shared" |
120 |
modtype="shared" |
117 |
fi |
121 |
fi |
Lines 163-168
Link Here
|
163 |
--with-program-name=apache2 \ |
167 |
--with-program-name=apache2 \ |
164 |
--with-devrandom=/dev/urandom \ |
168 |
--with-devrandom=/dev/urandom \ |
165 |
--host=${CHOST} ${MY_BUILTINS}" |
169 |
--host=${CHOST} ${MY_BUILTINS}" |
|
|
170 |
|
171 |
# Atomic Operations |
172 |
# Some modules, such as mod_cache, use APR's atomic API. This API provides |
173 |
# atomic operations that can be used for lightweight thread synchronization. |
174 |
# By default, APR implements these operations using the most efficient |
175 |
# mechanism available on each target OS/CPU platform. Many modern CPUs, for |
176 |
# example i486 and greater archs, have an instruction that does an atomic |
177 |
# compare-and-swap (CAS) operation in hardware. However Apache defaults to a slower, |
178 |
# mutex-based implementation of the atomic API in order to ensure |
179 |
# compatibility with older CPU models that lack such instructions. |
180 |
# Here we try to detect if you are building Apache from one of these platforms, |
181 |
# and select a faster atomic implementation by overriding Apache defaults with the: |
182 |
# --enable-nonportable-atomics option. |
183 |
# NOTE: nonportable-atomics increasing Apache performances and scalability. |
184 |
case ${CHOST} in |
185 |
i386*) |
186 |
;; |
187 |
*) ebegin "Setting faster APR Atomic Operations" |
188 |
myconf="${myconf} \ |
189 |
--enable-nonportable-atomics=yes" |
190 |
eend $? |
191 |
;; |
192 |
esac |
166 |
|
193 |
|
167 |
# debugging support |
194 |
# debugging support |
168 |
if useq debug ; then |
195 |
if useq debug ; then |