gcc direct link commandline

Carsten Grzemba grzemba at contac-dt.de
Wed Nov 20 17:14:39 CET 2013


NSS is not build with autotools and direct linking fails:

gcc -shared -h libnssutil3.so -z combreloc -z defs -z ignore -R'/opt/csw/lib/$ISALIST' -M /home/cgrzemba/opencsw/.buildsys/v2/gar/lib/map.solaris10 -B direct -z ignore -Wl,-M,SunOS5.10_i86pc_gcc_OPT.OBJ/nssutil.def -o SunOS5.10_i86pc_gcc_OPT.OBJ/libnssutil3.so SunOS5.10_i86pc_gcc_OPT.OBJ/quickder.o SunOS5.10_i86pc_gcc_OPT.OBJ/secdig.o SunOS5.10_i86pc_gcc_OPT.OBJ/derdec.o SunOS5.10_i86pc_gcc_OPT.OBJ/derenc.o SunOS5.10_i86pc_gcc_OPT.OBJ/dersubr.o SunOS5.10_i86pc_gcc_OPT.OBJ/dertime.o SunOS5.10_i86pc_gcc_OPT.OBJ/errstrs.o SunOS5.10_i86pc_gcc_OPT.OBJ/nssb64d.o SunOS5.10_i86pc_gcc_OPT.OBJ/nssb64e.o SunOS5.10_i86pc_gcc_OPT.OBJ/nssrwlk.o SunOS5.10_i86pc_gcc_OPT.OBJ/nssilock.o SunOS5.10_i86pc_gcc_OPT.OBJ/oidstring.o SunOS5.10_i86pc_gcc_OPT.OBJ/portreg.o SunOS5.10_i86pc_gcc_OPT.OBJ/secalgid.o SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1d.o SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1e.o SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1u.o SunOS5.10_i86pc_gcc_OPT.OBJ/secitem.o SunOS5.10_i86pc_gcc_OPT.OBJ/secload.o SunOS5.10_i86pc_gcc_OPT.OBJ/secoid.o SunOS5.10_i86pc_gcc_OPT.OBJ/sectime.o SunOS5.10_i86pc_gcc_OPT.OBJ/secport.o SunOS5.10_i86pc_gcc_OPT.OBJ/templates.o SunOS5.10_i86pc_gcc_OPT.OBJ/utf8.o SunOS5.10_i86pc_gcc_OPT.OBJ/utilmod.o SunOS5.10_i86pc_gcc_OPT.OBJ/utilpars.o -L../../../../dist/SunOS5.10_i86pc_gcc_OPT.OBJ/lib -L/opt/csw/lib -lplc4 -lplds4 -lnspr4 -lthread -lnsl -lsocket -lposix4 -ldl -lc
gcc: warning: /home/cgrzemba/opencsw/.buildsys/v2/gar/lib/map.solaris10: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/quickder.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secdig.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/derdec.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/derenc.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/dersubr.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/dertime.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/errstrs.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/nssb64d.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/nssb64e.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/nssrwlk.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/nssilock.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/oidstring.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/portreg.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secalgid.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1d.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1e.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secasn1u.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secitem.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secload.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secoid.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/sectime.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/secport.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/templates.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/utf8.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/utilmod.o: linker input file unused because linking not done
gcc: warning: SunOS5.10_i86pc_gcc_OPT.OBJ/utilpars.o: linker input file unused because linking not done

How is the correct commandline for direct linking with gcc?

Thanks Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20131120/b40e633f/attachment.html>


More information about the maintainers mailing list