[runtime] Define MONO_API_EXPORT properly for gcc, and define MONO_DLL_EXPORT so...
authorZoltan Varga <vargaz@gmail.com>
Thu, 12 Feb 2015 10:21:50 +0000 (05:21 -0500)
committerZoltan Varga <vargaz@gmail.com>
Thu, 12 Feb 2015 10:21:50 +0000 (05:21 -0500)
configure.ac
mono/utils/mono-publib.h

index 315ebb06b27669422069503f63073a193fd8679a..abed4c36cdec1f12dcb0d453193bf2ac365b0863 100644 (file)
@@ -539,6 +539,8 @@ if test x"$GCC" = xyes; then
                # We rely on signed overflow to behave
                CFLAGS="$CFLAGS -fwrapv"
 
+               CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
+
                ORIG_CFLAGS=$CFLAGS
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"
                AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)
index a418cadeca17dba4b1dd5de93e06c03fbcf3da77..c9becb2bf5e24f5e99c4b2e9d54d6284511dbf8a 100644 (file)
@@ -44,7 +44,11 @@ typedef unsigned __int64     uint64_t;
 
 #include <stdint.h>
 
+#ifdef __GNUC__
+#define MONO_API_EXPORT __attribute__ ((visibility ("default")))
+#else
 #define MONO_API_EXPORT
+#endif
 #define MONO_API_IMPORT
 
 #endif /* end of compiler-specific stuff */