projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b74940
)
[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>
Wed, 18 Feb 2015 00:05:03 +0000
(19:05 -0500)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index abed4c36cdec1f12dcb0d453193bf2ac365b0863..fc326497c056e5f270b2a4c3d040be271a9abf18 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-539,6
+539,12
@@
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"
+
+ # Export symbols marked by MONO_API
CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
ORIG_CFLAGS=$CFLAGS