[LLVMbugs] [Bug 19403] New: zlib support in windows with MSVC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 11 11:54:53 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19403

            Bug ID: 19403
           Summary: zlib support in windows with MSVC
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: sgundapa at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140411/0970c65c/attachment.html>


More information about the llvm-bugs mailing list