Compiling a program on Suse
I'm trying to compile a little program of mine on Suse and I would prefer to compile statically. It says my library is a dynamic object? Is there a workaround to include it in my binary statically?
/usr/share/doc/vmware-vix/samples # gcc -I/usr/include/vmware-vix powerOn.c -o powerOn -static /usr/lib/libvixAllProducts.so
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: attempted static link of dynamic object `/usr/lib/libvixAllProducts.so'
collect2: ld returned 1 exit status
thanks,
h.h.
|