- Timestamp:
- Mar 7, 2010 12:43:51 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r27139 r27140 1615 1615 # 1616 1616 # 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). 1618 1618 # 1619 1619 ifndef VBOX_DYLD_EXECUTABLE_PATH … … 1642 1642 if defined(VBOX_WITH_RELATIVE_RUNPATH) && defined(VBOX_WITH_HARDENING) 1643 1643 $(error VBOX_WITH_RELATIVE_RUNPATH and VBOX_WITH_HARDENING are mutually exclusive) 1644 endif 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 # 1653 VBOX_ORIGIN = $$ORIGIN 1654 ifeq ($(KBUILD_TARGET),solaris) 1655 VBOX_GCC_RPATH_OPT = -R 1656 else 1657 VBOX_GCC_RPATH_OPT = -Wl,-rpath, 1658 VBOX_GCC_ORIGIN_OPT = -Wl,-z,origin 1659 endif 1660 ifdef VBOX_WITH_ORIGIN 1661 VBOX_WITH_RELATIVE_RUNPATH = $$(VBOX_ORIGIN) 1644 1662 endif 1645 1663 … … 1703 1721 SDK_DARWIN-OPENGL_ORDERDEPS = $(addprefix $(PATH_OUT)/obj/VBoxOGL/GL/./,$(VBOX_DARWIN_OPENGL_HEADERS)) 1704 1722 ## @todo kBuild: Using INTERMEDIATES doesn't work! 1705 endif1706 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 = $$ORIGIN1712 ifeq ($(KBUILD_TARGET),solaris)1713 VBOX_GCC_RPATH_OPT = -R1714 else1715 VBOX_GCC_RPATH_OPT = -Wl,-rpath,1716 VBOX_GCC_ORIGIN_OPT = -Wl,-z,origin1717 1723 endif 1718 1724 … … 2711 2717 else ifdef VBOX_WITH_RELATIVE_RUNPATH 2712 2718 TEMPLATE_VBOXR3EXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 2713 e lse ifdef VBOX_WITH_ORIGIN2714 TEMPLATE_VBOXR3EXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'2719 endif 2720 ifdef VBOX_WITH_ORIGIN 2715 2721 TEMPLATE_VBOXR3EXE_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT) 2716 2722 endif … … 2890 2896 else ifdef VBOX_WITH_RELATIVE_RUNPATH 2891 2897 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS) 2892 else ifdef VBOX_WITH_ORIGIN2893 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS)2894 2898 endif 2895 2899 ifeq ($(KBUILD_TARGET),win) … … 3124 3128 else ifdef VBOX_WITH_RELATIVE_RUNPATH 3125 3129 TEMPLATE_VBOXMAINEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 3126 e lse ifdef VBOX_WITH_ORIGIN3127 TEMPLATE_VBOXMAINEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)' 3130 endif 3131 ifdef VBOX_WITH_ORIGIN 3128 3132 TEMPLATE_VBOXMAINEXE_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT) 3129 3133 endif … … 3196 3200 if defined(VBOX_WITH_RELATIVE_RUNPATH) && !defined(VBOX_WITH_HARDENING) 3197 3201 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)/..'3200 3202 else 3201 3203 TEMPLATE_VBOXMAINCOMP_LDFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_LDFLAGS) … … 3204 3206 ifdef VBOX_WITH_RELATIVE_RUNPATH 3205 3207 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_ORIGIN3207 TEMPLATE_VBOXMAINCOMP_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..'3208 3208 endif 3209 3209 endif … … 3443 3443 else ifdef VBOX_WITH_RELATIVE_RUNPATH 3444 3444 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 3445 else ifdef VBOX_WITH_ORIGIN3446 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'3447 3445 endif 3448 3446 -
trunk/src/libs/xpcom18a4/Makefile.kmk
r27139 r27140 105 105 else ifdef VBOX_WITH_RELATIVE_RUNPATH 106 106 TEMPLATE_XPCOM_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 107 else ifdef VBOX_WITH_ORIGIN108 TEMPLATE_XPCOM_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'109 107 endif 110 108 TEMPLATE_XPCOM_LDFLAGS.x86 = -m32
Note:
See TracChangeset
for help on using the changeset viewer.