File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 1- cd bin
1+ cd bin/unix
22#! /bin/bash
3- NAME= ' mysql '
3+ LIBNAME= ' cod4x_mysql.so '
44
5- # Compiling: release
6- echo ` gcc -m32 -Wall -O1 - s -fvisibility=hidden -mtune=core2 - I../mysql/unix/include -c ../* .c`
5+ echo Compiling...
6+ gcc -m32 -O3 - Wall -Wattributes -fPIC - s -fvisibility=hidden -I../../ mysql/unix/include -c ../../ * .c
77
8- # Linking
9- echo ` gcc -m32 -s -shared -fvisibility=hidden -L../ mysql/unix/lib -lmysqlclient -o $NAME ' ' .so * .o `
8+ echo Linking...
9+ gcc -m32 -O3 - s -shared -fvisibility=hidden -o $LIBNAME * .o ../../ mysql/unix/lib/libmysqlclient.a
1010
11- # Cleaning up
12- echo ` rm * .o`
11+ echo Cleaning up...
12+ rm * .o
13+
14+ echo Done.
15+
16+ cd ../..
Original file line number Diff line number Diff line change 22cd bin/win32
33set LIBNAME = " cod4x_mysql.dll"
44
5- echo Compile ...
6- gcc -O3 -Wall -I../../mysql/windows/include -c ../../*.c
5+ echo Compiling ...
6+ gcc -O3 -Wall -s -fvisibility=hidden - I../../mysql/windows/include -c ../../*.c
77
8- echo Link ...
9- gcc -O3 -shared -o %LIBNAME% *.o ../../mysql/windows/lib/libmysql.lib ../../../libcom_plugin.a
8+ echo Linking ...
9+ gcc -O3 -s - shared -fvisibility=hidden -o %LIBNAME% *.o ../../mysql/windows/lib/libmysql.lib ../../../libcom_plugin.a
1010
11- echo Cleanup ...
11+ echo Cleaning up ...
1212 del *.o
1313
1414echo Done.
1515
16- cd ..
16+ cd ../..
You can’t perform that action at this time.
0 commit comments