@@ -152,7 +152,7 @@ if [ -d /data ]; then
152
152
153
153
# --cache-file speeds up configure a lot
154
154
rm /tmp/Configure.cache
155
- export CFG_CACHE=" " # "--cache-file=/tmp/Configure.cache"
155
+ export CFG_CACHE=" " # "--cache-file=/tmp/Configure.cache"
156
156
if [ " $WRE_IA64 " == 1 ]; then
157
157
export CFLAGS=" $CFLAGS -fPIC"
158
158
export CXXFLAGS=" $CXXFLAGS -fPIC"
@@ -394,13 +394,21 @@ buildApache(){
394
394
cd source
395
395
396
396
# apache
397
- cd httpd-2.4.2
397
+ cd httpd-2.2.22
398
398
if [ " $WRE_CLEAN " == 1 ]; then
399
399
$WRE_MAKE distclean
400
400
$WRE_MAKE clean
401
- rm -Rf server/exports.c
402
- rm -Rf server/export_files
401
+ # rm -Rf server/exports.c
402
+ # rm -Rf server/export_files
403
403
fi
404
+ SAVED_CPPFLAGS=$CPPFLAGS
405
+ CPPFLAGS=" "
406
+ SAVED_CFLAGS=$CFLAGS
407
+ CFLAGS=" "
408
+ SAVED_LIBS=$LIBS
409
+ LIBS=" "
410
+ SAVED_LDFLAGS=$LDFLAGS
411
+ LDFLAGS=" "
404
412
./configure $CFG_CACHE --prefix=$PREFIX --with-included-apr --with-z=$PREFIX \
405
413
--sysconfdir=$WRE_ROOT /etc --localstatedir=$WRE_ROOT /var \
406
414
--enable-rewrite=shared --enable-deflate=shared --enable-ssl \
@@ -419,14 +427,18 @@ buildApache(){
419
427
rm -f $WRE_ROOT /etc/httpd.conf
420
428
rm -f $WRE_ROOT /etc/ssl-std.conf
421
429
rm -f $WRE_ROOT /etc/ssl.conf
430
+ CFLAGS=$SAVED_CFLAGS
431
+ CPPFLAGS=$SAVED_CPPFLAGS
432
+ LDFLAGS=$SAVED_LDFLAGS
433
+ LIBS=$SAVED_LIBS
422
434
423
435
# modperl
424
- cd ../mod_perl-2.0.6
436
+ cd ../mod_perl-2.0.7
425
437
if [ " $WRE_CLEAN " == 1 ]; then
426
438
$WRE_MAKE distclean
427
439
$WRE_MAKE clean
428
440
fi
429
- perl Makefile.PL MP_APXS=" $PREFIX /bin/apxs" ; checkError $? " mod_perl Configure"
441
+ perl Makefile.PL MP_APR_CONFIG= " $PREFIX /bin/apr-1-config " MP_APU_CONFIG= " $PREFIX /bin/apu-1-config " MP_APXS=" $PREFIX /bin/apxs" ; checkError $? " mod_perl Configure"
430
442
$WRE_MAKE ; checkError $? " mod_perl make"
431
443
$WRE_MAKE install; checkError $? " mod_perl make install"
432
444
cd ..
0 commit comments