Am Montag 01 Februar 2010 09:27:11 schrieb Viktor TARASOV: > Andreas Jellinghaus wrote: > > This patch creates a new libopensc containing those three libraries. > > The export list contains all symbols exported by those three. > > > > common/libcompat.la is also linked into libopensc, but not exported. > > The tools thus link common/libcompat.la themself. > > > > Is this the way we want to go? Shall I appy it? > > Nice intention, for me it works. > > Will the same be done with the windows version?
I started to hack on it, but I have little clue and can't test. maybe you want to give it a try? note: I saw some bugs in the Makefile.mak system: in tools/, tests/ and pkcs11/ you should not link with scconf/scconf.lib pkcs15init/pkcs15init.lib and libopensc/libopensc.lib, but instead with libopensc/libopensc.dll which has all the code from those three directories. not sure how you specify that you want to linkg against a dll with windows makefiles. do you need a special *.lib file for that? (i.e. one that does not contain the code for static linking, but only glue code for linking with the dll)? or do you use the *.def file alon mentioned (with mingw building)? also the windows makefile.mak files are not consistent: some include the central rules first, some last etc. and there is this central versioninfo.rc file in win32. but src/libopensc/ has a versioninfo.rc code in Makefile.am too. strange. and some apps are linked with versioninfo.rc, but not all (test, scconf, common, ... might be missing the code to do that). but with little clue about windows build (mingw or visual studio), I can't help much here. I saw some builddir vs. sourcedir bugs, will fix them. Andreas _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
