You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
398 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -50,7 +50,7 @@ if (("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" MATCHES
  4. ADD_DEFINITIONS(-std=c99)
  5. ADD_DEFINITIONS(-pedantic)
  6. # for strdup, setenv
  7. - ADD_DEFINITIONS(-D_POSIX_C_SOURCE=200809)
  8. + ADD_DEFINITIONS(-D_GNU_SOURCE)
  9. #http://gcc.gnu.org/wiki/Visibility
  10. add_definitions(-fvisibility=hidden)