From e3eb945fd2c4590cae59dd81cb5b08ab62673f33 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Mon, 20 May 2019 14:51:59 +0800 Subject: [PATCH] cmake: restore use of GNU extensions from libc --- tools/cmake/build.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/build.cmake b/tools/cmake/build.cmake index ad46d3d8d..e20b68cc4 100644 --- a/tools/cmake/build.cmake +++ b/tools/cmake/build.cmake @@ -91,7 +91,7 @@ function(__build_set_default_build_specifications) unset(c_compile_options) unset(cxx_compile_options) - list(APPEND compile_definitions "-DHAVE_CONFIG_H") + list(APPEND compile_definitions "-DHAVE_CONFIG_H" "-D_GNU_SOURCE") list(APPEND compile_options "-ffunction-sections" "-fdata-sections"