Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c3e3c780
Commit
c3e3c780
authored
Jul 09, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: don't check for the compiler on every invocation of RESTRICT_SYMBOL_EXPORTS(),
do it only once
parent
f171d3ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
cmake/libutils.cmake
cmake/libutils.cmake
+12
-13
No files found.
cmake/libutils.cmake
View file @
c3e3c780
...
...
@@ -304,23 +304,22 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result)
SET
(
${
result
}
${
ret
}
PARENT_SCOPE
)
ENDFUNCTION
()
# We try to hide the symbols in yassl/zlib to avoid name clashes with
# other libraries like openssl.
FUNCTION
(
RESTRICT_SYMBOL_EXPORTS target
)
SET
(
VISIBILITY_HIDDEN_FLAG
)
SET
(
VISIBILITY_HIDDEN_FLAG
)
IF
(
CMAKE_COMPILER_IS_GNUCXX AND UNIX
)
CHECK_C_COMPILER_FLAG
(
"-fvisibility=hidden"
HAVE_VISIBILITY_HIDDEN
)
IF
(
HAVE_VISIBILITY_HIDDEN
)
MESSAGE
(
STATUS
"HAVE_VISIBILITY_HIDDEN"
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-fvisibility=hidden"
)
ENDIF
()
IF
(
CMAKE_COMPILER_IS_GNUCXX AND UNIX
)
CHECK_C_COMPILER_FLAG
(
"-fvisibility=hidden"
HAVE_VISIBILITY_HIDDEN
)
IF
(
HAVE_VISIBILITY_HIDDEN
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-fvisibility=hidden"
)
ENDIF
()
ENDIF
()
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-xldscope=hidden"
)
ENDIF
()
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-xldscope=hidden"
)
ENDIF
()
# We try to hide the symbols in yassl/zlib to avoid name clashes with
# other libraries like openssl.
FUNCTION
(
RESTRICT_SYMBOL_EXPORTS target
)
IF
(
VISIBILITY_HIDDEN_FLAG
)
GET_TARGET_PROPERTY
(
COMPILE_FLAGS
${
target
}
COMPILE_FLAGS
)
IF
(
NOT COMPILE_FLAGS
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment