cmake: restore use of GNU extensions from libc

This commit is contained in:
Renz Christian Bagaporo 2019-05-20 14:51:59 +08:00
parent 5175a152d9
commit e3eb945fd2

View file

@ -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"