Re: [xslt] [PATCH] xslt extensions as modules/dso's



--- Igor Zlatkovic <igor zlatkovic com> wrote:
> > Now if libxml2 is built staticly the GetModuleFileName would have pass NULL
> for
> > the first parameter to get the path of the calling EXE.  If libxml2 is
> built as
> > a dll it would have to add a call to GetModuleHandle("libxml2.dll") then
> pass
> > that to GetModuleFilename.  If someone builds libxml2 but uses a different
> > name, such as "libxml2.2.0.52.dll" for the library they are SOL because
> that
> > name isn't known at compile time.
> 
> It is, since you must know the name of the DLL at compile time in order 
> to build an apropriate import library. We can modify the configure.js 
> script to take this name and put it at the apropriate place in the source.

Well, the DLL name is known at link time, not compile time.  If you build
libxml2 as static for dll the final library name will be known only by the
third party and not during the libx* compile time.



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