shared libraries + lto ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I would like to know if one can use lto with shared libraries and leverage all the goodness of both worlds ?

My tests show that it works but not sure if lto brang something or not in the game.

gcc -O3 -shared -fPIC my_shared.c -o libmy_shared.so -lto

and linking

gcc -O3 my_app.c -o my_binary -lmy_shared -lto

I would like to keep the ability to have shared libraries. Will gcc make something out of it ?

Thanks 		 	   		  




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux