VirtualBox

Ignore:
Timestamp:
Apr 30, 2007 2:58:17 PM (18 years ago)
Author:
vboxsync
Message:

with gcc, mark all ELF symbols with visibility=hidden by default and mark symbols which should be exported as visibility=default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r2366 r2435  
    3232TEMPLATE_XPCOM_ASDEFS              = $(NO_SUCH_VARIABLE)
    3333TEMPLATE_XPCOM_CXXFLAGS            = -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \
    34                                      $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy
     34                                     $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \
     35                                     $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)
    3536
    3637TEMPLATE_XPCOM_CXXFLAGS.debug      = -fno-inline
     
    4041TEMPLATE_XPCOM_CXXFLAGS.l4         = -fno-exceptions -nostdinc
    4142TEMPLATE_XPCOM_CXXFLAGS.linux      = -pthread
    42 TEMPLATE_XPCOM_CFLAGS              = -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized
     43TEMPLATE_XPCOM_CFLAGS              = -pipe -Wall -Wno-unused -Wno-parentheses -Wno-uninitialized $(VBOX_GCC_fvisibility-hidden)
    4344TEMPLATE_XPCOM_CFLAGS.debug        = -fno-inline
    4445TEMPLATE_XPCOM_CFLAGS.release      = -O
     
    4647TEMPLATE_XPCOM_CFLAGS.l4           = -nostdinc
    4748TEMPLATE_XPCOM_CFLAGS.linux        = -pthread -ansi
    48 TEMPLATE_XPCOM_DEFS                = MOZILLA_CLIENT=1 NDEBUG=1
     49TEMPLATE_XPCOM_DEFS                = MOZILLA_CLIENT=1 NDEBUG=1 _IMPL_NS_COM
    4950TEMPLATE_XPCOM_DEFS.x86            = i386=1
    5051TEMPLATE_XPCOM_DEFS.amd64          = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\)
    51 TEMPLATE_XPCOM_DEFS.darwin         = OSTYPE=\"Darwin8.8.1\" OSARCH=\"Darwin\" MOZ_DLL_SUFFIX=\".dylib\" XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1
    52 TEMPLATE_XPCOM_DEFS.linux          = OSTYPE=\"Linux2.6\"    OSARCH=\"Linux\"  MOZ_DLL_SUFFIX=\".so\"    XP_UNIX=1 _GNU_SOURCE
    53 TEMPLATE_XPCOM_DEFS.l4             = OSTYPE=\"L4ENV\"       OSARCH=\"L4\"     MOZ_DLL_SUFFIX=\".s.so\"  XP_UNIX=1 L4ENV
     52TEMPLATE_XPCOM_DEFS.darwin         = OSTYPE=\"Darwin8.8.1\" OSARCH=\"Darwin\" MOZ_DLL_SUFFIX=\".dylib\" XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1
     53TEMPLATE_XPCOM_DEFS.linux          = OSTYPE=\"Linux2.6\"    OSARCH=\"Linux\"  MOZ_DLL_SUFFIX=\".so\"    XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1
     54TEMPLATE_XPCOM_DEFS.l4             = OSTYPE=\"L4ENV\"       OSARCH=\"L4\"     MOZ_DLL_SUFFIX=\".s.so\"  XP_UNIX=1 L4ENV HAVE_VISIBILITY_ATTRIBUTE=1
    5455TEMPLATE_XPCOM_DEFS.os2            = OSTYPE=\"OS/2 4.5\"    OSARCH=\"OS/2\"   MOZ_DLL_SUFFIX=\".dll\"   XP_UNIX=1
    5556TEMPLATE_XPCOM_LDFLAGS.darwin      = $(VBOXR3NP_LDFLAGS.darwin) \
     
    554555        FORCE_PR_LOG
    555556VBox-xpcom-nspr_DEFS.darwin = \
    556         HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
    557557        HAVE_BSD_FLOCK=1 \
    558558        _PR_PTHREADS
     
    568568        _REENTRANT=1 \
    569569        _LARGEFILE64_SOURCE=1 \
    570         HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
    571         HAVE_VISIBILITY_PRAGMA=1 \
    572570        HAVE_FCNTL_FILE_LOCKING=1 \
    573571        HAVE_CVAR_BUILT_ON_SEM \
     
    581579        _POSIX_SOURCE=1 \
    582580        _BSD_SOURCE=1 \
    583         HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
    584         HAVE_VISIBILITY_PRAGMA=1 \
    585581        HAVE_FCNTL_FILE_LOCKING=1 \
    586582        HAVE_CVAR_BUILT_ON_SEM
     
    725721VBox-xpcom-string_TEMPLATE = XPCOM
    726722VBox-xpcom-string_NOINST = 1
    727 VBox-xpcom-string_DEFS = _IMPL_NS_COM
    728723VBox-xpcom-string_SOURCES = \
    729724        xpcom/string/src/nsAString.cpp \
     
    912907#
    913908VBoxXPCOM_TEMPLATE = XPCOM
    914 VBoxXPCOM_DEFS = BUILD_DCONNECT="1"
     909VBoxXPCOM_DEFS = BUILD_DCONNECT="1" _IMPL_NS_COM
    915910VBoxXPCOM_SOURCES = \
    916911        xpcom/glue/nsCOMPtr.cpp \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette