i try to add an openssl option to mysql-4 (current) with the attached patch but get the following:

/home/www-test/local/bin/cc
-DDEFAULT_CHARSET_HOME=\"/home/www-test/local\"
-DDATADIR=\"/home/www-test/local/var/mysql\"
-DSHAREDIR=\"/home/www-test/local/share/mysql\" -DDONT_USE_RAID -I. -I.
-I.. -I./../include -I../include -I./.. -I.. -I..
/home/www-test/local/include/openssl -O3 -DDBUG_OFF -O2 -pipe
-D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -c libmysql.c -MT libmysql.lo -MD
-MP -MF .deps/libmysql.TPlo -o libmysql.o
cc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [libmysql.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /home/www-test/local/RPM/TMP/rpm-tmp.19649
(%build)

without it compiles fine & there is nothing else modified.

Regards

Julien


--- mysql.spec.orig     2004-02-14 16:05:57.169637895 +0100
+++ mysql.spec  2004-02-14 16:25:36.910084270 +0100
@@ -45,6 +45,7 @@
 #   package options
 %option       with_bdb       yes
 %option       with_innodb    no
+%option       with_openssl   no
 
 #   list of sources
 Source0:      
http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-%{V_major}/mysql-%{V_mysql}.tar.gz
@@ -113,6 +114,10 @@
 %if "%{with_innodb}" == "no"
         --without-innodb \
 %endif
+%if "%{with_openssl}" == "yes"
+        --with-openssl-includes=%{l_prefix}/include/openssl \
+       --with-openssl-libs=%{l_prefix}/lib \
+%endif
         --with-named-z-libs=no \
         --with-low-memory \
         --disable-shared \

Reply via email to