[mapguide-commits] r10114 - branches/4.0/MgDev
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Jan 29 22:39:46 PST 2025
Author: jng
Date: 2025-01-29 22:39:45 -0800 (Wed, 29 Jan 2025)
New Revision: 10114
Modified:
branches/4.0/MgDev/cmake_linuxapt.sh
Log:
Add support for building httpd against static openssl
Modified: branches/4.0/MgDev/cmake_linuxapt.sh
===================================================================
--- branches/4.0/MgDev/cmake_linuxapt.sh 2025-01-05 11:18:01 UTC (rev 10113)
+++ branches/4.0/MgDev/cmake_linuxapt.sh 2025-01-30 06:39:45 UTC (rev 10114)
@@ -24,6 +24,7 @@
OEM_WORK_DIR=~/mapguide_oem_build
LINUXAPT_WORK_DIR=~/mapguide_linuxapt_build
USE_CCACHE=0
+USE_STATIC_OPENSSL=0
while [ $# -gt 0 ]; do # Until you run out of parameters...
case "$1" in
--prefix)
@@ -38,6 +39,9 @@
LINUXAPT_WORK_DIR="$2"
shift
;;
+ --with-static-openssl)
+ USE_STATIC_OPENSSL=1
+ ;;
# "infecting" our ccache with root-elevated cached object files is probably a bad look
# especially if we need to non-elevated ccache builds further down the road
#--with-ccache)
@@ -176,8 +180,14 @@
mv "${LA_WORKDIR}/apr-util-$APR_UTIL_VER" "${LA_WORKDIR}/httpd-$HTTPD_VER/srclib/apr-util"
fi
cd "${HTTPD_WORKDIR}" || exit
- echo "Configuring HTTPD"
- ./configure --prefix="${MG_INSTALL_WEB_PREFIX}/apache2" --enable-mods-shared-all --with-included-apr --with-port=${HTTPD_PORT} 2>&1 | tee "$LINUXAPT_WORK_DIR/configure_httpd_fake.log"
+ if [ "$USE_STATIC_OPENSSL" = "1" ];
+ then
+ echo "Configuring HTTPD (with static openssl)"
+ ./configure --prefix="${MG_INSTALL_WEB_PREFIX}/apache2" --with-ssl=/usr/local --enable-ssl --enable-ssl-staticlib-deps --enable-mods-static=ssl --with-included-apr --with-port=${HTTPD_PORT} 2>&1 | tee "$LINUXAPT_WORK_DIR/configure_httpd_fake.log"
+ else
+ echo "Configuring HTTPD"
+ ./configure --prefix="${MG_INSTALL_WEB_PREFIX}/apache2" --enable-mods-shared-all --with-included-apr --with-port=${HTTPD_PORT} 2>&1 | tee "$LINUXAPT_WORK_DIR/configure_httpd_fake.log"
+ fi
check_build
echo "Building HTTPD. Please wait"
make 2>&1 | tee "$LINUXAPT_WORK_DIR/make_httpd_fake.log"
More information about the mapguide-commits
mailing list