[fossil-users] Building fossil on Windows with MinGW - dependency on libz

2011-03-18 Thread Arjen Markus
Hello,

I have built fossil on Windows (XP) using MinGW and the gcc compiler.
That works fine, except that the resulting executable depends on
the libz-1.dll that is located in the MinGW bin directory.

This means such an executable will not work if that DLL is not in
the path (or one of the other locations for DLLs).

Would it not be better to link against the static/archive version
of libz?

Regards,

Arjen
 

DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.




___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Building fossil on Windows with MinGW - dependency on libz

2011-03-18 Thread Mark Janssen
On Fri, Mar 18, 2011 at 11:09 AM, Arjen Markus arjen.mar...@deltares.nlwrote:

 Hello,

 I have built fossil on Windows (XP) using MinGW and the gcc compiler.
 That works fine, except that the resulting executable depends on
 the libz-1.dll that is located in the MinGW bin directory.

 This means such an executable will not work if that DLL is not in
 the path (or one of the other locations for DLLs).

 Would it not be better to link against the static/archive version
 of libz?

 Regards,

 Arjen

The current makefile only links statically if FOSSIL_ENABLE_SSL is defined.
It is a fairly easy change to the Makefile to include -static for all cases.
Looking at the stand-alone design philosophy, it could be argued that this
should be the default.

Mark
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Building fossil on Windows with MinGW - dependency on libz

2011-03-18 Thread Richard Hipp
On Fri, Mar 18, 2011 at 6:09 AM, Arjen Markus arjen.mar...@deltares.nlwrote:

 Hello,

 I have built fossil on Windows (XP) using MinGW and the gcc compiler.
 That works fine, except that the resulting executable depends on
 the libz-1.dll that is located in the MinGW bin directory.

 This means such an executable will not work if that DLL is not in
 the path (or one of the other locations for DLLs).

 Would it not be better to link against the static/archive version
 of libz?


I link the precompiled binaries on the website against libz.a so that there
is no dependency.  I don't have a libz.dll anywhere on my system.



 Regards,

 Arjen


 DISCLAIMER: This message is intended exclusively for the addressee(s) and
 may contain confidential and privileged information. If you are not the
 intended recipient please notify the sender immediately and destroy this
 message. Unauthorized use, disclosure or copying of this message is strictly
 prohibited.
 The foundation 'Stichting Deltares', which has its seat at Delft, The
 Netherlands, Commercial Registration Number 41146461, is not liable in any
 way whatsoever for consequences and/or damages resulting from the improper,
 incomplete and untimely dispatch, receipt and/or content of this e-mail.




 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Building fossil on Windows with MinGW - dependency on libz

2011-03-18 Thread Arjen Markus
Hi Richard,

On 2011-03-18 12:49, Richard Hipp wrote:

 
 I link the precompiled binaries on the website against libz.a so that 
 there is no dependency.  I don't have a libz.dll anywhere on my system.
  

Hm, I installed libz and zlib (not quite sure what the relationship is
and I always mix them up), and that gave me both an archive version and
and a DLL version of libz (called libz-1.dll).

As Mark suggests, forcing a link against static libraries seems the way
to go.

Regards,

Arjen
 

DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.




___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Building fossil on Windows with MinGW - dependency on libz

2011-03-18 Thread Antoine Chavasse
On Fri, Mar 18, 2011 at 12:53 PM, Arjen Markus arjen.mar...@deltares.nl wrote:

 As Mark suggests, forcing a link against static libraries seems the way
 to go.

That's how I build fossil in windows. I had the same problem and just
modified the mingw makefile to add -static in the LIB variable. I
think it would make sense to have it as default, unless there is
really a good reason to want to use zlib as a dll.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users