]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport r1071426:
authorStefan Fritsch <sf@apache.org>
Sat, 16 Apr 2011 19:09:47 +0000 (19:09 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 16 Apr 2011 19:09:47 +0000 (19:09 +0000)
    Fix link errors for crypt() with --no-add-needed/--no-copy-dt-needed-entries,
    which is the default for the gold linker.

Reviewed by: sf, trawick, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1094029 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
configure.in
support/Makefile.in

diff --git a/CHANGES b/CHANGES
index 75a7df8717800f1cb7f3472e3e57b5492678af47..736dfe9aa33e77d4b4a18073747cb8fd76ca257e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.18
 
+  *) configure: Fix htpasswd/htdbm libcrypt link errors with some newer
+     linkers. [Stefan Fritsch]
+
   *) MinGW build improvements.  PR 49535.  [John Vandenberg 
      <jayvdb gmail.com>, Jeff Trawick]
 
diff --git a/STATUS b/STATUS
index 06985bc308ee3ca3513b4190666d19004f41af1b..b3836401386dfbe550949001b7a3362215003904 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -91,11 +91,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * configure: Fix linking htpasswd/htdbm with crypt
-     Trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1071426
-     2.2.x patch: Trunk version of patch works with fuzz
-     +1: sf, trawick, wrowe
-
   * mod_win32: Add shebang check so that .vbs scripts can work as CGI.
      Trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1054347
      2.2.x patch: Trunk version of patch works with offset  
index d240cfa02f75052d62f48043e9af58cc37cb7919..0557b4addb25de23b997f42e93bc1975d383f158 100644 (file)
@@ -401,6 +401,13 @@ AC_C_CONST
 dnl ## Check for library functions
 AC_SEARCH_LIBS(sqrt, m)
 
+saved_LIBS="$LIBS"
+LIBS=""
+AC_SEARCH_LIBS(crypt, crypt)
+CRYPT_LIBS="$LIBS"
+APACHE_SUBST(CRYPT_LIBS)
+LIBS="$saved_LIBS"
+
 dnl See Comment #Spoon
 
 AC_CHECK_FUNCS( \
index aaaf6f4ab478de779a512937f831348e80ddf18b..85aff3403b019e4116315c1c43749d52ef32c94a 100644 (file)
@@ -31,7 +31,7 @@ install:
 
 htpasswd_OBJECTS = htpasswd.lo
 htpasswd: $(htpasswd_OBJECTS)
-       $(LINK) $(htpasswd_LTFLAGS) $(htpasswd_OBJECTS) $(PROGRAM_LDADD)
+       $(LINK) $(htpasswd_LTFLAGS) $(htpasswd_OBJECTS) $(PROGRAM_LDADD) $(CRYPT_LIBS)
 
 htdigest_OBJECTS = htdigest.lo
 htdigest: $(htdigest_OBJECTS)
@@ -47,7 +47,7 @@ logresolve: $(logresolve_OBJECTS)
 
 htdbm_OBJECTS = htdbm.lo
 htdbm: $(htdbm_OBJECTS)
-       $(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD)
+       $(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD) $(CRYPT_LIBS)
 
 ab_OBJECTS = ab.lo
 ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS)