On Sat, Mar 11, 2000, [EMAIL PROTECTED] wrote:
> Full_Name: Scott Weikart
> Version:
> OS:
> Submission from: (NULL) (199.174.207.113)
>
> We (and others) have CC as a multi-word string, with some arguments
> to gcc.
But keep in mind that this is bogus for Autoconf environments, of .
course Instead of CC="gcc -O2" you should use CC=gcc CFLAGS=-O2, etc .
But ok.. .
> Here's my patch to correctly identify gcc when needed (except TABs
> will probably be turned into SPACEs, so you won't be able to feed it
> into patch).
>
> -scott
> ==============
> --- mod_ssl-2.6.2-1.3.12/pkg.sslmod/libssl.module~ Sat Jan 22 06:06:52
> 2000
> +++ mod_ssl-2.6.2-1.3.12/pkg.sslmod/libssl.module Sun Feb 6 12:30:59
> 2000
> #
> if [ ".$my_buildtype" = .DSO ]; then
> case $CC in
> - gcc|*/gcc|egcs|*/egcs|egcc|*/egcc|pgcc|*/pgcc )
> + gcc|*/gcc|egcs|*/egcs|egcc|*/egcc|pgcc|*/pgcc | 'gcc '*|*/'gcc '*
> )
Hmmm... that's a half-way solution, only. Because this way CC="/sw/bin/egcc
-O2" still doesn't work. Instead I propose the following patch:
Index: libssl.module
===================================================================
RCS file: /e/modssl/cvs/mod_ssl/pkg.apache/src/modules/ssl/libssl.module,v
retrieving revision 1.56
diff -u -r1.56 libssl.module
--- libssl.module 2000/02/22 09:26:59 1.56
+++ libssl.module 2000/03/11 10:03:09
@@ -517,7 +517,8 @@
# needed (like on FreeBSD, Linux, etc.)
#
if [ ".$my_buildtype" = .DSO ]; then
- case $CC in
+ my_CC=`echo "$CC" | sed -e 's/ .*//'`
+ case $my_CC in
gcc|*/gcc|egcs|*/egcs|egcc|*/egcc|pgcc|*/pgcc )
gcclibdir="`$CC --print-libgcc-file-name | sed -e 's;/[^/]*$;;'`"
SSL_LIBS="$SSL_LIBS -L$gcclibdir -lgcc"
Does this work for you, too?
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]