I compiled the same C source in two linux machines, both machines are RedHat 9.0.
I installed the same GCC compiler and MySQL library.
But why the compiled size is very different ?
In machine 1, 18 KB .....
In machine 2, 180 KB .....
What could be wrong ?
Here is my compile script :
echo "building $1"
gcc -o $1 $1.c -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lz
It's probably in the second machine, the gcc put all the library in the resulting binary ?
Anyone can give me any idea why this happen ?