You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2007/12/28 16:11:51 UTC
svn commit: r607260 - in /httpd/httpd/branches/2.0.x: STATUS acinclude.m4
modules/ssl/config.m4 support/Makefile.in
Author: jim
Date: Fri Dec 28 07:11:51 2007
New Revision: 607260
URL: http://svn.apache.org/viewvc?rev=607260&view=rev
Log:
* Backport 102870; PR 17217; stop linking OpenSSL .so's to support/*
binaries (especially when compiled --with-static-support (!)) and
fix mod_ssl.so to compile against .a openssl archives.
http://svn.apache.org/viewcvs.cgi?rev=102870&view=rev
adjusted patch without distcache complexity and accomodating the
changes for pkgconfig info from ssl
http://people.apache.org/~wrowe/httpd-2.0-limit-ssl-binding.patch
+1: wrowe, colm, rpluem
Modified:
httpd/httpd/branches/2.0.x/STATUS
httpd/httpd/branches/2.0.x/acinclude.m4
httpd/httpd/branches/2.0.x/modules/ssl/config.m4
httpd/httpd/branches/2.0.x/support/Makefile.in
Modified: httpd/httpd/branches/2.0.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/STATUS?rev=607260&r1=607259&r2=607260&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/STATUS (original)
+++ httpd/httpd/branches/2.0.x/STATUS Fri Dec 28 07:11:51 2007
@@ -116,14 +116,6 @@
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * Backport 102870; PR 17217; stop linking OpenSSL .so's to support/*
- binaries (especially when compiled --with-static-support (!)) and
- fix mod_ssl.so to compile against .a openssl archives.
- http://svn.apache.org/viewcvs.cgi?rev=102870&view=rev
- adjusted patch without distcache complexity and accomodating the
- changes for pkgconfig info from ssl
- http://people.apache.org/~wrowe/httpd-2.0-limit-ssl-binding.patch
- +1: wrowe, colm, rpluem
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ please place SVN revisions from trunk here, so it is easy to
Modified: httpd/httpd/branches/2.0.x/acinclude.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/acinclude.m4?rev=607260&r1=607259&r2=607260&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/acinclude.m4 (original)
+++ httpd/httpd/branches/2.0.x/acinclude.m4 Fri Dec 28 07:11:51 2007
@@ -174,7 +174,7 @@
modpath_static="$modpath_static $libname"
cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
- \$(MOD_LINK) $objects
+ \$(MOD_LINK) $objects $5
EOF
else
apache_need_shared=yes
@@ -266,7 +266,10 @@
fi
shared="";;
esac
- APACHE_MODPATH_ADD($1, $shared, $3)
+ define([modprefix], [MOD_]translit($1, [a-z-], [A-Z_]))
+ APACHE_MODPATH_ADD($1, $shared, $3,, [\$(]modprefix[_LDADD)])
+ APACHE_SUBST(modprefix[_LDADD])
+ undefine([modprefix])
fi
])dnl
@@ -488,14 +491,24 @@
APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
fi
fi
- APR_ADDTO(LIBS, [-lssl -lcrypto])
+ # Put SSL libraries in SSL_LIBS.
+ if test "$ap_ssltk_type" = "openssl"; then
+ APR_SETVAR(SSL_LIBS, [-lssl -lcrypto])
+ else
+ APR_SETVAR(SSL_LIBS, [-lsslc])
+ fi
pkg-config openssl 2> /dev/null
if test $? -eq 0; then
ap_ssltk_incdep=`pkg-config --cflags-only-I openssl`
APR_ADDTO(INCLUDES, $ap_ssltk_incdep)
ap_ssltk_libdep=`pkg-config --libs openssl`
- APR_ADDTO(LIBS, $ap_ssltk_libdep)
+ if test "$ap_ssltk_type" = "openssl"; then
+ APR_SETVAR(SSL_LIBS, $ap_ssltk_libdep)
+ else
+ APR_SETVAR(SSL_LIBS, $ap_ssltk_libdep)
+ fi
fi
+ APACHE_SUBST(SSL_LIBS)
ap_cv_ssltk="$ap_ssltk_base"
fi
])
Modified: httpd/httpd/branches/2.0.x/modules/ssl/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/modules/ssl/config.m4?rev=607260&r1=607259&r2=607260&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/modules/ssl/config.m4 (original)
+++ httpd/httpd/branches/2.0.x/modules/ssl/config.m4 Fri Dec 28 07:11:51 2007
@@ -44,6 +44,7 @@
dnl # hook module into the Autoconf mechanism (--enable-ssl option)
APACHE_MODULE(ssl, [SSL/TLS support (mod_ssl)], $ssl_objs, , no, [
APACHE_CHECK_SSL_TOOLKIT
+ APR_SETVAR(MOD_SSL_LDADD, [\$(SSL_LIBS)])
AC_CHECK_FUNCS(SSL_set_state)
AC_CHECK_FUNCS(SSL_set_cert_store)
])
Modified: httpd/httpd/branches/2.0.x/support/Makefile.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/support/Makefile.in?rev=607260&r1=607259&r2=607260&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/support/Makefile.in (original)
+++ httpd/httpd/branches/2.0.x/support/Makefile.in Fri Dec 28 07:11:51 2007
@@ -50,8 +50,9 @@
$(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD)
ab_OBJECTS = ab.lo
+ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS)
ab: $(ab_OBJECTS)
- $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(PROGRAM_LDADD)
+ $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD)
checkgid_OBJECTS = checkgid.lo
checkgid: $(checkgid_OBJECTS)