GCC 4.3 makes Linux/MySQL shared objects smaller

This commit is contained in:
Bernardo Damele 2011-02-03 14:59:31 +00:00
parent 12090a86bc
commit 06bb369da5
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ LIBDIR=/usr/lib
#LIBDIR=/usr/lib/mysql/plugin
install:
gcc -Wall -I/usr/include/mysql -Os -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so
gcc-4.3 -Wall -I/usr/include/mysql -Os -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so
strip -sx lib_mysqludf_sys.so
cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so

View File

@ -4,6 +4,6 @@ LIBDIR=/usr/lib
#LIBDIR=/usr/lib/mysql/plugin
install:
gcc-4.2 -Wall -I/usr/include/mysql -Os -shared lib_mysqludf_sys.c -fPIC -o lib_mysqludf_sys.so
gcc-4.3 -Wall -I/usr/include/mysql -Os -shared lib_mysqludf_sys.c -fPIC -o lib_mysqludf_sys.so
strip -sx lib_mysqludf_sys.so
cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so