VirtualBox

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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