소스 검색

Avoid builtin dgettext when checking libc

The builtin causes errors in the test, and we're also trying to
determine if it is provided by libc or not.
tags/v1.6.90
Pierre Ossman 8 년 전
부모
커밋
14c563a22e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      CMakeLists.txt

+ 2
- 0
CMakeLists.txt 파일 보기

@@ -147,6 +147,7 @@ if(ENABLE_NLS)
find_path(GETTEXT_INCLUDE_DIR libintl.h)
if(GETTEXT_INCLUDE_DIR)
set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
set(CMAKE_REQUIRED_FLAGS -fno-builtin-dgettext)
check_function_exists(dgettext LIBC_HAS_DGETTEXT)
if(LIBC_HAS_DGETTEXT)
set(GETTEXT_FOUND TRUE)
@@ -161,6 +162,7 @@ if(ENABLE_NLS)
endif()
endif()
set(CMAKE_REQUIRED_LIBRARIES)
set(CMAKE_REQUIRED_FLAGS)
endif()
endif()


Loading…
취소
저장