Re: Cool-Key on Solaris

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

 



On 03/ 4/10 02:04 PM, Wan-Teh Chang wrote:
Could you post the command line that builds libcoolkeypk11.so?
I'd like to see whether the compiler (cc, CC, gcc, or g++) or the
linker (ld) is used in the final step that links libcoolkeypk11.so.
I don't need the compiler command lines that compile the individual
files.

I believe this is the relevant portion:

(cd /export/home/reinholz/Download/coolkey-1.1.0/src/coolkey; /bin/sh ../../libtool --mode=relink g++ -g -O2 -o libcoolkeypk11.la -rpath /usr/local/lib/pkcs11 -avoid-version -export-symbols coolkeypk11.sym -no-undefined libcoolkeypk11_la-coolkey.lo libcoolkeypk11_la-dllmain.lo libcoolkeypk11_la-locking.lo libcoolkeypk11_la-log.lo libcoolkeypk11_la-machdep.lo libcoolkeypk11_la-object.lo libcoolkeypk11_la-PKCS11Exception.lo libcoolkeypk11_la-slot.lo ../../src/libckyapplet/libckyapplet.la -ldl -lz )
/usr/gnu/bin/echo "{ global:" > .libs/libcoolkeypk11.so.exp
cat coolkeypk11.sym | /usr/gnu/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libcoolkeypk11.so.exp
/usr/gnu/bin/echo "local: *; };" >> .libs/libcoolkeypk11.so.exp
g++ -shared -nostdlib -Wl,-M -Wl,.libs/libcoolkeypk11.so.exp -o .libs/libcoolkeypk11.so /usr/lib/crti.o /usr/lib/values-Xa.o /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtbegin.o .libs/libcoolkeypk11_la-coolkey.o .libs/libcoolkeypk11_la-dllmain.o .libs/libcoolkeypk11_la-locking.o .libs/libcoolkeypk11_la-log.o .libs/libcoolkeypk11_la-machdep.o .libs/libcoolkeypk11_la-object.o .libs/libcoolkeypk11_la-PKCS11Exception.o .libs/libcoolkeypk11_la-slot.o -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/sfw/lib -L/usr/local/lib -lckyapplet -ldl -lz -L/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../.. -L/usr/sfw/lib -lstdc++ -lm -lgcc_s /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtend.o /usr/lib/crtn.o
rm -f .libs/libcoolkeypk11.so.exp
/usr/bin/ginstall -c .libs/libcoolkeypk11.soT /usr/local/lib/pkcs11/libcoolkeypk11.so
chmod +x /usr/local/lib/pkcs11/libcoolkeypk11.so
In general we need to use the compiler to link libcoolkeypk11.so.
The compiler will take care of linking with any necessary crt files.

Wan-Teh

_______________________________________________
Coolkey-devel mailing list
Coolkey-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/coolkey-devel

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Women]

  Powered by Linux