projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfc0d6f
)
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 12 Feb 2015 07:25:12 +0000
(
02:25
-0500)
committer
Zoltan Varga
<vargaz@gmail.com>
Thu, 12 Feb 2015 07:25:19 +0000
(
02:25
-0500)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 315ebb06b27669422069503f63073a193fd8679a..d4eb5c7b977862d77a8a84d628b76c7a9a680ff7 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-539,6
+539,11
@@
if test x"$GCC" = xyes; then
# We rely on signed overflow to behave
CFLAGS="$CFLAGS -fwrapv"
+ # Don't export any symbols by default
+ CFLAGS="$CFLAGS -fvisibility=hidden"
+ CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB -fvisibility=hidden"
+ CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
+
ORIG_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)