소스 검색

Link zlib statically on all platforms

The API and ABI isn't as stable as we need, so it isn't safe to
link it dynamically even on Linux.
tags/v1.9.90
Peter Åstrand (astrand) 5 년 전
부모
커밋
97eeefd771
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1
    4
      cmake/StaticBuild.cmake

+ 1
- 4
cmake/StaticBuild.cmake 파일 보기

@@ -19,10 +19,7 @@ if(BUILD_STATIC)
set(BUILD_STATIC_GCC 1)

set(JPEG_LIBRARIES "-Wl,-Bstatic -ljpeg -Wl,-Bdynamic")

if(WIN32)
set(ZLIB_LIBRARIES "-Wl,-Bstatic -lz -Wl,-Bdynamic")
endif()
set(ZLIB_LIBRARIES "-Wl,-Bstatic -lz -Wl,-Bdynamic")

# gettext is included in libc on many unix systems
if(NOT LIBC_HAS_DGETTEXT)

Loading…
취소
저장