[Botan-devel] More configure.pl issues

Joel Low joel at joelsplace.sg
Fri Oct 3 19:14:07 EDT 2008


I use both VC2005 and 2008. I've got both compilers. Is /NAME (meant to
be) passed to cl or link? My AR is defined as link /DLL

Regards,
Joel

> -----Original Message-----
> From: botan-devel-bounces at randombit.net [mailto:botan-devel-
> bounces at randombit.net] On Behalf Of Jack Lloyd
> Sent: Friday, 3 October, 2008 11:07 PM
> To: botan-devel at randombit.net
> Subject: Re: [Botan-devel] More configure.pl issues
> 
> 
> On Fri, Oct 03, 2008 at 06:50:40PM +0800, Joel Low wrote:
> > Hello,
> >
> > I use Windows and compile Botan as a DLL and a few things need
> changing.
> >
> > * The makefile generated uses STATIC_LIB as a target. Now this is
> fine,
> > but under VC there's no /NAME command line option and the import
> library
> > is determined by the name of the resulting DLL. So these three lines
> > replace the old STATIC_LIB and LIBNAME lines in my repaired
makefile:
> >     o LIBNAME       = botan$(LIBNAMESUFFIX)
> >     o LIBEXT        = dll
> >     o BOTANLIB      = $(LIBNAME).$(LIBEXT)
> >     o This is kind of against the Linux tradition of naming
libraries
> > libX; Windows generally doesn't observe this rule (I've got nothing
> > against it, it's just a preference)
> 
> OK. No reason not to follow system conventions where reasonable.
> 
> > * When building a shared library, under Windows, the $(LINK_TO) must
> be
> > passed to the linker or undefined references result
> > * And, as mentioned, there's no /NAME command line parameter, the
> name
> > of the DLL and the corresponding import library has to be set using
> the
> > /OUT command line option
> 
> Great thanks.
> 
> Which version are you using? At the moment I only test with VC2008 on
> x86.
> 
> -Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
> 




More information about the botan-devel mailing list