diff --git a/mysql.spec b/mysql.spec index b415d59..27a4a1b 100644 --- a/mysql.spec +++ b/mysql.spec @@ -197,15 +197,12 @@ export CFLAGS CXXFLAGS --with-ssl=/usr \ --without-debug \ --enable-shared \ - --with-bench \ --with-embedded-server \ --localstatedir=/var/lib/mysql \ --with-unix-socket-path=/var/lib/mysql/mysql.sock \ --with-mysqld-user="mysql" \ --with-extra-charsets=all \ --with-big-tables \ - --with-innodb \ - --with-ndbcluster \ --enable-local-infile \ --enable-largefile \ --enable-thread-safe-client \ @@ -222,12 +219,13 @@ make %{?_smp_mflags} mkdir libmysqld/work cd libmysqld/work ar -x ../libmysqld.a -gcc -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 *.o \ +gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \ + *.o \ -lpthread -lcrypt -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc # this is to check that we built a complete library cp %{SOURCE9} . ln -s libmysqld.so.0.0.1 libmysqld.so.0 -gcc -I../../include mysql-embedded-check.c libmysqld.so.0 +gcc -I../../include $CFLAGS mysql-embedded-check.c libmysqld.so.0 LD_LIBRARY_PATH=. ldd ./a.out cd ../..