VirtualBox

Changeset 10384

Show
Ignore:
Timestamp:
07/08/08 22:43:39 (3 months ago)
Author:
vboxsync
Message:

VBOX_HAVE_VISIBILITY_HIDDEN -> RT_USE_VISIBILITY_DEFAULT and RT_USE_VISIBILITY_HIDDEN. Added -keep_private_extern to VBOXR0DRV on darwin, and RT_USE_VISIBILITY_HIDDEN to try work around the non-working private_extern in g++.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Config.kmk

    r10341 r10384  
    11901190        $(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CC),)' 
    11911191        $(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,)' 
    11931193        $(APPEND) '$@' ' endif' 
    11941194        $(APPEND) '$@' 'endif' 
     
    17951795ifeq ($(KBUILD_TARGET),darwin) 
    17961796TEMPLATE_VBOXR0DRV_TOOL                = GXX4MACHO 
    1797 TEMPLATE_VBOXR0DRV_DEFS               += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT 
     1797TEMPLATE_VBOXR0DRV_DEFS               += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT RT_USE_VISIBILITY_HIDDEN 
    17981798# I didn't really know why we have to state explicitly the position of the 
    17991799# sdk headers. Maybe it has something to do with the fact that the kernel.framework 
     
    18141814TEMPLATE_VBOXR0DRV_CFLAGS.profile      = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile) 
    18151815TEMPLATE_VBOXR0DRV_CFLAGS.kprofile     = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile) 
    1816 TEMPLATE_VBOXR0DRV_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 
     1816TEMPLATE_VBOXR0DRV_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern 
    18171817TEMPLATE_VBOXR0DRV_LIBS                = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC) 
    18181818endif 
  • trunk/include/iprt/cdefs.h

    r10383 r10384  
    444444#if defined(_MSC_VER) || defined(RT_OS_OS2) 
    445445# define DECLEXPORT(type)       __declspec(dllexport) type 
    446 #elif defined(VBOX_HAVE_VISIBILITY_HIDDEN
     446#elif defined(RT_USE_VISIBILITY_DEFAULT
    447447# define DECLEXPORT(type)      __attribute__((visibility("default"))) type 
    448448#else 
     
    464464 * @param   type    The return type of the function or the data type of the variable. 
    465465 */ 
    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) 
    467467# define DECLHIDDEN(type)       type 
    468468#else 
     
    12971297#if defined(_MSC_VER) || defined(RT_OS_OS2) 
    12981298# define DECLEXPORT_CLASS       __declspec(dllexport) 
    1299 #elif defined(VBOX_HAVE_VISIBILITY_HIDDEN
     1299#elif defined(RT_USE_VISIBILITY_DEFAULT
    13001300# define DECLEXPORT_CLASS       __attribute__((visibility("default"))) 
    13011301#else 
     
    13131313#if defined(_MSC_VER) || (defined(RT_OS_OS2) && !defined(__IBMC__) && !defined(__IBMCPP__)) 
    13141314# define DECLIMPORT_CLASS       __declspec(dllimport) 
    1315 #elif defined(VBOX_HAVE_VISIBILITY_HIDDEN
     1315#elif defined(RT_USE_VISIBILITY_DEFAULT
    13161316# define DECLIMPORT_CLASS       __attribute__((visibility("default"))) 
    13171317#else 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy