[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Jan 26 23:14:07 UTC 2018


 CMakeLists.txt |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit c41b7fc10588323b5d8c0007befa701994115f7b
Author: Ebrahim Byagowi <ebrahim at gnu.org>
Date:   Thu Jan 25 09:53:32 2018 +0330

    [cmake] Use -fvisibility-inlines-hidden instead (#726)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5d9c173..c0853d6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,9 +126,7 @@ if (BUILD_SHARED_LIBS)
   if (WIN32 AND NOT MINGW)
     add_definitions("-DHB_EXTERN=__declspec(dllexport) extern")
   else ()
-    set (CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
-    set (CMAKE_C_FLAGS "-fvisibility=hidden ${CMAKE_C_FLAGS}")
-    add_definitions("-DHB_EXTERN=__attribute__((visibility(\"default\"))) extern")
+    set (CMAKE_CXX_FLAGS "-fvisibility-inlines-hidden ${CMAKE_CXX_FLAGS}")
   endif ()
 endif ()
 
@@ -530,8 +528,7 @@ if (UNIX OR MINGW)
   ))
     set (CMAKE_CXX_FLAGS "-fno-rtti -fno-exceptions ${CMAKE_CXX_FLAGS}")
   endif ()
-  add_definitions(-D__CORRECT_ISO_CPP11_MATH_H_PROTO_FP)
-  set (CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "c;m") # libc and libm
+  set (CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "m") # libm
   set (CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "")
   set_target_properties(harfbuzz PROPERTIES LINKER_LANGUAGE C)
 


More information about the HarfBuzz mailing list