VirtualBox

Changeset 11551 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 21, 2008 5:16:02 PM (16 years ago)
Author:
vboxsync
Message:

API/xpcom: prefix any C symbols in VBoxXPCOM.so, to avoid namespace pollution. Enabled only on Linux at the moment.

Location:
trunk/src/VBox/Main/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r11467 r11551  
    8686tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
    8787tstVBoxAPILinux_LDFLAGS.solaris += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/../../..'
     88ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     89 tstVBoxAPILinux_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     90endif
    8891tstVBoxAPILinux_INCS     = \
    8992        $(VBOX_XPCOM_INCS) \
  • trunk/src/VBox/Main/testcase/makefile.tstVBoxAPILinux

    r8155 r11551  
    2121PATH_BIN       = ../../..
    2222
     23# This setting must be the same as used when building VBoxXPCOM.so.
     24# If you get a lot of unresolved symbols, try commenting it out.
     25VBOX_WITH_XPCOM_NAMESPACE_CLEANUP=1
     26
    2327PATH_XPCOM_IDL = $(PATH_XPCOM)/idl
    2428INCS_XPCOM     = $(PATH_XPCOM)/include \
     
    2731                 $(PATH_XPCOM)/include/xpcom/xpcom \
    2832                 $(PATH_XPCOM)/include/xpcom/ipcd
     33
     34ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     35 DEFS_XPCOM   += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
     36endif
     37
    2938
    3039#
     
    3847
    3948tstVBoxAPILinux.o: tstVBoxAPILinux.cpp
    40         g++ -c -DRT_OS_LINUX -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) -o $@ tstVBoxAPILinux.cpp
     49        g++ -c -DRT_OS_LINUX -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPILinux.cpp
    4150
    4251clean:
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