projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d3271
)
Do feature test before adding -Bsymbolic-functions, cmake part (#889)
author
Joel Winarske
<joel.winarske@gmail.com>
Fri, 16 Mar 2018 19:14:27 +0000
(12:14 -0700)
committer
Ebrahim Byagowi
<ebrahim@gnu.org>
Fri, 16 Mar 2018 19:14:27 +0000
(22:44 +0330)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
5ddc15a
..
85709b2
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-537,7
+537,11
@@
target_link_libraries(harfbuzz-subset harfbuzz ${THIRD_PARTY_LIBS})
if (UNIX OR MINGW)
# Make symbols link locally
- link_libraries(-Bsymbolic-functions)
+ include(CheckCXXCompilerFlag)
+ check_cxx_compiler_flag(-Bsymbolic-functions CXX_SUPPORTS_FLAG_BSYMB_FUNCS)
+ if(CXX_SUPPORTS_FLAG_BSYMB_FUNCS)
+ link_libraries(-Bsymbolic-functions)
+ endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Make sure we don't link to libstdc++