How do I tell the linker that stays statically when creating libfoo.a shared object shareobj? Using Gcc / make. I have tried to pass the LDFALAG option LDFALGS + = -W1 --Vell-collection -L / path / to / libfoo -lfoo
I have also tried to pass the LDFLAGS option LDFLAGS + = I have also tried to pass LDFALGS option LDFLAGS + = -W1, Bstatic -L / path / to / libfoo -lfoo
and
I passed the LDFLAGS option LDFALGS + = -W 1, Staticly linked-L / path / To / LibFuf-LFU
Have also tried I have many links to read through, which tell me how to do it but there is not working so far. LDFALGS is just a feature of Auto (conf | Crap), and Linker never sees it.
Just give all the options on the command line, such as:
GCC obj1.o obj2.o. .. -shared -o libfoo.so -l / path / to / lib -lbar
Comments
Post a Comment