Changeset 10384 in vbox
- Timestamp:
- Jul 8, 2008 8:43:39 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r10341 r10384 1190 1190 $(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CC),)' 1191 1191 $(APPEND) '$@' ' ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)' 1192 $(APPEND) '$@' ' VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN ,)'1192 $(APPEND) '$@' ' VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT,)' 1193 1193 $(APPEND) '$@' ' endif' 1194 1194 $(APPEND) '$@' 'endif' … … 1795 1795 ifeq ($(KBUILD_TARGET),darwin) 1796 1796 TEMPLATE_VBOXR0DRV_TOOL = GXX4MACHO 1797 TEMPLATE_VBOXR0DRV_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT 1797 TEMPLATE_VBOXR0DRV_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT RT_USE_VISIBILITY_HIDDEN 1798 1798 # I didn't really know why we have to state explicitly the position of the 1799 1799 # sdk headers. Maybe it has something to do with the fact that the kernel.framework … … 1814 1814 TEMPLATE_VBOXR0DRV_CFLAGS.profile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile) 1815 1815 TEMPLATE_VBOXR0DRV_CFLAGS.kprofile = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile) 1816 TEMPLATE_VBOXR0DRV_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 1816 TEMPLATE_VBOXR0DRV_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern 1817 1817 TEMPLATE_VBOXR0DRV_LIBS = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC) 1818 1818 endif -
trunk/include/iprt/cdefs.h
r10383 r10384 444 444 #if defined(_MSC_VER) || defined(RT_OS_OS2) 445 445 # define DECLEXPORT(type) __declspec(dllexport) type 446 #elif defined( VBOX_HAVE_VISIBILITY_HIDDEN)446 #elif defined(RT_USE_VISIBILITY_DEFAULT) 447 447 # define DECLEXPORT(type) __attribute__((visibility("default"))) type 448 448 #else … … 464 464 * @param type The return type of the function or the data type of the variable. 465 465 */ 466 #if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) || !defined( VBOX_HAVE_VISIBILITY_HIDDEN)466 #if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) || !defined(RT_USE_VISIBILITY_HIDDEN) 467 467 # define DECLHIDDEN(type) type 468 468 #else … … 1297 1297 #if defined(_MSC_VER) || defined(RT_OS_OS2) 1298 1298 # define DECLEXPORT_CLASS __declspec(dllexport) 1299 #elif defined( VBOX_HAVE_VISIBILITY_HIDDEN)1299 #elif defined(RT_USE_VISIBILITY_DEFAULT) 1300 1300 # define DECLEXPORT_CLASS __attribute__((visibility("default"))) 1301 1301 #else … … 1313 1313 #if defined(_MSC_VER) || (defined(RT_OS_OS2) && !defined(__IBMC__) && !defined(__IBMCPP__)) 1314 1314 # define DECLIMPORT_CLASS __declspec(dllimport) 1315 #elif defined( VBOX_HAVE_VISIBILITY_HIDDEN)1315 #elif defined(RT_USE_VISIBILITY_DEFAULT) 1316 1316 # define DECLIMPORT_CLASS __attribute__((visibility("default"))) 1317 1317 #else
Note:
See TracChangeset
for help on using the changeset viewer.