From 14c563a22e637e45fdc132120847c4b96313c859 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 10 Mar 2016 17:08:32 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef0923eb..2759781d 100644 --- a/CMakeLists.txt +++ b/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() -- 2.39.5