<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - zlib support in windows with MSVC"
href="http://llvm.org/bugs/show_bug.cgi?id=19403">19403</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>zlib support in windows with MSVC
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sgundapa@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Why is zlib support disabled for windows/MSVC in CMake?
I got the zlib headers and libraries from GetGnuWin32. I have a code in llvm
that uses zlib algorithm. With the current CMake configuration in LLVM, I
couldn't configure to link zlib.
To detect zlib.h header
-DCMAKE_C_FLAGS="/IC:/GetGnuWin32/gnuwin32/include" -
DCMAKE_CXX_FLAGS="/IC:/GetGnuWin32/gnuwin32/include"
To detect zlib.lib library (dirty hack)
-DHAVE_LIBZ=1 -DCMAKE_EXE_LINKER_FLAGS="C:/GetGnuWin32/gnuwin32/lib/zlib.lib"
-DCMAKE_SHARED_LINKER_FLAGS="C:/GetGnuWin32/gnuwin32/lib/zlib.lib"
The checks to detect zlib library and add it to the linker line are written for
non-windows/MSVC sytems.
I think, blocking the zlib support in windows is a limitation and a bug.
--Sumanth G</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>