This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

shared libraries + lto ?


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]