You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kurt Miller <tr...@optonline.net> on 2003/10/30 23:32:10 UTC

jk2/libcrypt patch

Last one for today...

Building on mod_jk2 OpenBSD libcrypt is not available or needed.
Does -lcrypt have to be specified in the Makefile.in files for other platforms?
Will libtool add it on the appropriate platforms? If it will here's a patch
to remove it:

Index: jk/native2/server/apache13/Makefile.in
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native2/server/apache13/Makefile.in,v
retrieving revision 1.7
diff -u -r1.7 Makefile.in
--- jk/native2/server/apache13/Makefile.in 28 Nov 2002 15:54:51 -0000 1.7
+++ jk/native2/server/apache13/Makefile.in 30 Oct 2003 22:25:58 -0000
@@ -23,7 +23,7 @@
           ${APACHE_INCL}
 
 JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 @APR_CFLAGS@ -DHAVE_MMAP ${JAVA_INCL}
-JK_LDFLAGS=-L${APACHE_HOME}/lib -lcrypt @APR_LDFLAGS@ ${JAVA_LIB}
+JK_LDFLAGS=-L${APACHE_HOME}/lib @APR_LDFLAGS@ ${JAVA_LIB}
 
 ###### Based on rules.mk ##########################################
 ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)
Index: jk/native2/server/apache2/Makefile.in
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native2/server/apache2/Makefile.in,v
retrieving revision 1.12
diff -u -r1.12 Makefile.in
--- jk/native2/server/apache2/Makefile.in 9 Apr 2003 18:05:03 -0000 1.12
+++ jk/native2/server/apache2/Makefile.in 30 Oct 2003 22:25:58 -0000
@@ -34,7 +34,7 @@
           ${JAVA_INCL}
 
 JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@
-JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 @PCRE_LIBS@
+JK_LDFLAGS=-L${APACHE2_LIBDIR} -lapr-0 @PCRE_LIBS@
 
 ###### Based on rules.mk ##########################################
 ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: jk2/libcrypt patch

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Kurt Miller wrote:
> Last one for today...
> 
> Building on mod_jk2 OpenBSD libcrypt is not available or needed.
> Does -lcrypt have to be specified in the Makefile.in files for other platforms?
> Will libtool add it on the appropriate platforms? If it will here's a patch
> to remove it:

+1: The -lcrypt is in the APR_LDFLAGS.

> 
> Index: jk/native2/server/apache13/Makefile.in
> ===================================================================
> RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native2/server/apache13/Makefile.in,v
> retrieving revision 1.7
> diff -u -r1.7 Makefile.in
> --- jk/native2/server/apache13/Makefile.in 28 Nov 2002 15:54:51 -0000 1.7
> +++ jk/native2/server/apache13/Makefile.in 30 Oct 2003 22:25:58 -0000
> @@ -23,7 +23,7 @@
>            ${APACHE_INCL}
>  
>  JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 @APR_CFLAGS@ -DHAVE_MMAP ${JAVA_INCL}
> -JK_LDFLAGS=-L${APACHE_HOME}/lib -lcrypt @APR_LDFLAGS@ ${JAVA_LIB}
> +JK_LDFLAGS=-L${APACHE_HOME}/lib @APR_LDFLAGS@ ${JAVA_LIB}
>  
>  ###### Based on rules.mk ##########################################
>  ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)
> Index: jk/native2/server/apache2/Makefile.in
> ===================================================================
> RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native2/server/apache2/Makefile.in,v
> retrieving revision 1.12
> diff -u -r1.12 Makefile.in
> --- jk/native2/server/apache2/Makefile.in 9 Apr 2003 18:05:03 -0000 1.12
> +++ jk/native2/server/apache2/Makefile.in 30 Oct 2003 22:25:58 -0000
> @@ -34,7 +34,7 @@
>            ${JAVA_INCL}
>  
>  JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR @HAVE_JNI@ @HAS_PCRE@
> -JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 @PCRE_LIBS@
> +JK_LDFLAGS=-L${APACHE2_LIBDIR} -lapr-0 @PCRE_LIBS@
>  
>  ###### Based on rules.mk ##########################################
>  ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org