VirtualBox

Changeset 100578 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 14, 2023 2:02:17 PM (19 months ago)
Author:
vboxsync
Message:

Additions/VBoxClient: More trickery needed in order to get this working on Solaris, as the required libs don't have any suffixes there. For that we now use a macro which can generate different .def files for different Oses on-the-fly. See comments for details. Only tested on Linux so far [SCM fix]. bugref:10427

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r100576 r100578  
    206206 # @param 3  The library version, to be appended to the library .so name (e.g. "6.42" -> "libFoo.so.6.42").
    207207 define def_libToLazyLoad
    208         VBoxClient_SOURCES += \
    209                 $$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm
    210         VBoxClient_CLEAN   += \
    211                 $$(VBoxClient_0_OUTDIR)/$(2).def \
    212                 $$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm
    213         $$$$(VBoxClient_0_OUTDIR)/$(2).def: \
    214                 $$(PATH_ROOT)/src/VBox/GuestHost/$(2).def $(MAKEFILE_CURRENT) | $$$$(dir $$@)
    215                 $$(call MSG_GENERATE,$(2).def,$$@,$$<)
    216                 $$(eval LIB_TO_LAZYLOAD_SUFF=$$$$(if $(3),$(SUFF_DLL).$(3),$(SUFF_DLL)))
    217                 $$(QUIET)$$(RM) -f $$@
    218                 $$(QUIET)$$(REDIRECT) -o $$@ -- $$(SED) -e "s+@VBOX_LAZYLOAD_DEF_LIB_STRING@+$(2)$$(LIB_TO_LAZYLOAD_SUFF)+g" $$(PATH_ROOT)/src/VBox/GuestHost/$(2).def
    219         $$$$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm: $$$$(VBoxClient_0_OUTDIR)/$(2).def $$(VBOX_DEF_2_LAZY_LOAD) | $$$$(dir $$@)
    220                 $$(call MSG_TOOL,VBoxDef2LazyLoad,VBoxClient,$$(VBoxClient_0_OUTDIR)/$(2).def -> $$@)
    221                 $$(QUIET)$$(RM) -f -- "$$@"
    222                 $$(QUIET)$$(VBOX_DEF_2_LAZY_LOAD) --system --library $(2)$(SUFF_DLL).$(3) --output "$$@" $$(VBoxClient_0_OUTDIR)/$(2).def
     208  VBoxClient_SOURCES      += \
     209        $$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm
     210  VBoxClient_CLEAN         += \
     211        $$(VBoxClient_0_OUTDIR)/$(2).def \
     212        $$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm
     213  $$$$(VBoxClient_0_OUTDIR)/$(2).def: \
     214                $$(PATH_ROOT)/src/VBox/GuestHost/$(2).def $(MAKEFILE_CURRENT) | $$$$(dir $$@)
     215        $$(call MSG_GENERATE,$(2).def,$$@,$$<)
     216        $$(eval LIB_TO_LAZYLOAD_SUFF=$$$$(if $(3),$(SUFF_DLL).$(3),$(SUFF_DLL)))
     217        $$(QUIET)$$(RM) -f $$@
     218        $$(QUIET)$$(REDIRECT) -o $$@ -- $$(SED) -e "s+@VBOX_LAZYLOAD_DEF_LIB_STRING@+$(2)$$(LIB_TO_LAZYLOAD_SUFF)+g" $$(PATH_ROOT)/src/VBox/GuestHost/$(2).def
     219  $$$$(VBoxClient_0_OUTDIR)/$(2)LazyLoad.asm: $$$$(VBoxClient_0_OUTDIR)/$(2).def $$(VBOX_DEF_2_LAZY_LOAD) | $$$$(dir $$@)
     220        $$(call MSG_TOOL,VBoxDef2LazyLoad,VBoxClient,$$(VBoxClient_0_OUTDIR)/$(2).def -> $$@)
     221        $$(QUIET)$$(RM) -f -- "$$@"
     222        $$(QUIET)$$(VBOX_DEF_2_LAZY_LOAD) --system --library $(2)$(SUFF_DLL).$(3) --output "$$@" $$(VBoxClient_0_OUTDIR)/$(2).def
    223223 endef # VBOXCLIENT_LAZYLOAD_GEN_ASM_FN
    224224
     
    228228 # Note: Solaris does *not* have any of those libs with a version suffix, so simply keep those empty (= unset) then.
    229229 if1of ($(KBUILD_TARGET), linux)
    230   LIBX11_VER=6
    231   LIBXT_VER=6
    232   LIBXMU_VER=6
    233   LIBXRANDR_VER=2
     230  LIBX11_VER = 6
     231  LIBXT_VER = 6
     232  LIBXMU_VER = 6
     233  LIBXRANDR_VER = 2
    234234 endif
    235235 ## Dynamic import no. 1: libX11.so.6
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