VirtualBox

Changeset 27140 in vbox for trunk


Ignore:
Timestamp:
Mar 7, 2010 12:43:51 AM (15 years ago)
Author:
vboxsync
Message:

Config.kmk,xpcom18a4/Makefile.kmk: Merged VBOX_WITH_ORIGIN into VBOX_WITH_RELATIVE_RUNPATH.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r27139 r27140  
    16151615#
    16161616# Macro switching between @executable_path, @rpath and /Applications/VirtualBox.app
    1617 # depending on whether the build is hardened or not (dylib install_name)
     1617# depending on whether the build is hardened or not (dylib install_name).
    16181618#
    16191619ifndef VBOX_DYLD_EXECUTABLE_PATH
     
    16421642if defined(VBOX_WITH_RELATIVE_RUNPATH) && defined(VBOX_WITH_HARDENING)
    16431643 $(error VBOX_WITH_RELATIVE_RUNPATH and VBOX_WITH_HARDENING are mutually exclusive)
     1644endif
     1645
     1646#
     1647# VBOX_WITH_ORIGIN translates into VBOX_WITH_RELATIVE_RUNPATH.
     1648#
     1649# We use two helper variables for the VBOX_WITH_ORIGIN stuff:
     1650#       VBOX_ORIGIN - Indirect expansion trick.
     1651#       VBOX_GCC_RPATH_OPT - Different GCC/LD combinations needs different options.
     1652#
     1653VBOX_ORIGIN = $$ORIGIN
     1654ifeq ($(KBUILD_TARGET),solaris)
     1655 VBOX_GCC_RPATH_OPT  = -R
     1656else
     1657 VBOX_GCC_RPATH_OPT  = -Wl,-rpath,
     1658 VBOX_GCC_ORIGIN_OPT = -Wl,-z,origin
     1659endif
     1660ifdef VBOX_WITH_ORIGIN
     1661 VBOX_WITH_RELATIVE_RUNPATH = $$(VBOX_ORIGIN)
    16441662endif
    16451663
     
    17031721 SDK_DARWIN-OPENGL_ORDERDEPS = $(addprefix $(PATH_OUT)/obj/VBoxOGL/GL/./,$(VBOX_DARWIN_OPENGL_HEADERS))
    17041722 ## @todo kBuild: Using INTERMEDIATES doesn't work!
    1705 endif
    1706 
    1707 # Two helper variables for the VBOX_WITH_ORIGIN stuff:
    1708 #       VBOX_ORIGIN - Indirect expansion trick.
    1709 #       VBOX_GCC_RPATH_OPT - Different GCC/LD combinations needs different options.
    1710 ## @todo combine ORIGIN with VBOX_WITH_RELATIVE_RUNPATH, it's the same concept.
    1711 VBOX_ORIGIN = $$ORIGIN
    1712 ifeq ($(KBUILD_TARGET),solaris)
    1713  VBOX_GCC_RPATH_OPT = -R
    1714 else
    1715  VBOX_GCC_RPATH_OPT = -Wl,-rpath,
    1716  VBOX_GCC_ORIGIN_OPT = -Wl,-z,origin
    17171723endif
    17181724
     
    27112717 else ifdef VBOX_WITH_RELATIVE_RUNPATH
    27122718  TEMPLATE_VBOXR3EXE_LDFLAGS          += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
    2713  else ifdef VBOX_WITH_ORIGIN
    2714   TEMPLATE_VBOXR3EXE_LDFLAGS          += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'
     2719 endif
     2720 ifdef VBOX_WITH_ORIGIN
    27152721  TEMPLATE_VBOXR3EXE_LDFLAGS.linux    += $(VBOX_GCC_ORIGIN_OPT)
    27162722 endif
     
    28902896else ifdef VBOX_WITH_RELATIVE_RUNPATH
    28912897 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS)
    2892 else ifdef VBOX_WITH_ORIGIN
    2893  TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS)
    28942898endif
    28952899ifeq ($(KBUILD_TARGET),win)
     
    31243128 else ifdef VBOX_WITH_RELATIVE_RUNPATH
    31253129TEMPLATE_VBOXMAINEXE_LDFLAGS            += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
    3126  else ifdef VBOX_WITH_ORIGIN
    3127 TEMPLATE_VBOXMAINEXE_LDFLAGS            += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'
     3130 endif
     3131 ifdef VBOX_WITH_ORIGIN
    31283132TEMPLATE_VBOXMAINEXE_LDFLAGS.linux      += $(VBOX_GCC_ORIGIN_OPT)
    31293133 endif
     
    31963200  if defined(VBOX_WITH_RELATIVE_RUNPATH) && !defined(VBOX_WITH_HARDENING)
    31973201   TEMPLATE_VBOXMAINCOMP_LDFLAGS = -fPIC $(filter-out '$(VBOX_GCC_RPATH_OPT)%',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..'
    3198   else if defined(VBOX_WITH_ORIGIN)      && !defined(VBOX_WITH_HARDENING)
    3199    TEMPLATE_VBOXMAINCOMP_LDFLAGS = -fPIC $(filter-out '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..'
    32003202  else
    32013203   TEMPLATE_VBOXMAINCOMP_LDFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_LDFLAGS)
     
    32043206  ifdef VBOX_WITH_RELATIVE_RUNPATH
    32053207   TEMPLATE_VBOXMAINCOMP_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..'
    3206   else ifdef VBOX_WITH_ORIGIN
    3207    TEMPLATE_VBOXMAINCOMP_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..'
    32083208  endif
    32093209 endif
     
    34433443  else ifdef VBOX_WITH_RELATIVE_RUNPATH
    34443444   TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
    3445   else ifdef VBOX_WITH_ORIGIN
    3446    TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'
    34473445  endif
    34483446
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r27139 r27140  
    105105else ifdef VBOX_WITH_RELATIVE_RUNPATH
    106106TEMPLATE_XPCOM_LDFLAGS            += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'
    107 else ifdef VBOX_WITH_ORIGIN
    108 TEMPLATE_XPCOM_LDFLAGS            += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'
    109107endif
    110108TEMPLATE_XPCOM_LDFLAGS.x86         = -m32
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