VirtualBox

Changeset 106688 in vbox


Ignore:
Timestamp:
Oct 25, 2024 11:09:46 AM (3 months ago)
Author:
vboxsync
Message:

/Config.kmk,*.kmk: The VBoxZlib SDK must use LATE_LIBS instead of LIBS to avoid linking ordering problems on linux. jiraref:VBP-1253

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r106683 r106688  
    53255325if1of ($(KBUILD_TARGET), os2 solaris win)
    53265326 SDK_VBoxZlib_INCS            ?= $(PATH_ROOT)/src/libs/zlib-1.2.13
    5327  SDK_VBoxZlib_LIBS            ?= $(PATH_STAGE_LIB)/VBox-zlib$(VBOX_SUFF_LIB)
     5327 SDK_VBoxZlib_LATE_LIBS       ?= $(PATH_STAGE_LIB)/VBox-zlib$(VBOX_SUFF_LIB)
    53285328else
    53295329 SDK_VBoxZlib_INCS            ?=
    5330  SDK_VBoxZlib_LIBS            ?= z
     5330 SDK_VBoxZlib_LATE_LIBS       ?= z
    53315331 SDK_VBoxZlib_DEFS.linux      ?= _LARGEFILE64_SOURCE
    53325332endif
     
    53355335SDK_VBoxZlib-x86_EXTENDS       = VBoxZlib
    53365336if1of ($(KBUILD_TARGET), os2 solaris win)
    5337  SDK_VBoxZlib_LIBS-x86        ?= $(PATH_STAGE_LIB)/VBox-zlib-x86$(VBOX_SUFF_LIB)
    5338 endif
    5339 
    5340 SDK_VBoxZlibStatic           := zlib for static linking
    5341 SDK_VBoxZlibStatic_EXTENDS   := VBoxZlib
     5337 SDK_VBoxZlib-x86_LIBS        ?= $(PATH_STAGE_LIB)/VBox-zlib-x86$(VBOX_SUFF_LIB)
     5338endif
     5339
     5340SDK_VBoxZlibStatic            := zlib for static linking
     5341SDK_VBoxZlibStatic_EXTENDS    := VBoxZlib
    53425342if1of ($(KBUILD_TARGET), os2 win) # Not required on solaris.
    5343  SDK_VBoxZlibStatic_LIBS        ?= $(PATH_STAGE_LIB)/VBox-zlib-static$(VBOX_SUFF_LIB)
     5343 SDK_VBoxZlibStatic_LATE_LIBS ?= $(PATH_STAGE_LIB)/VBox-zlib-static$(VBOX_SUFF_LIB)
    53445344endif
    53455345
     
    69006900 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \
    69016901        $(SDK_VBoxLzfStatic_LIBS) \
    6902         $(SDK_VBoxZlibStatic_LIBS) \
     6902        $(SDK_VBoxZlibStatic_LATE_LIBS) \
    69036903        $(SDK_VBoxLibLzmaStatic_LIBS)
    69046904else
    69056905 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \
    69066906        $(SDK_VBoxLzf_LIBS) \
    6907         $(SDK_VBoxZlib_LIBS) \
     6907        $(SDK_VBoxZlib_LATE_LIBS) \
    69086908        $(SDK_VBoxLibLzma_LIBS)
    69096909 if1of ($(KBUILD_TARGET), darwin freebsd)
     
    71927192                $(if-expr !defined(SDK_VBoxLibXml2_LIBS),$(PATH_STAGE_LIB)/VBox-libxml2-static$(VBOX_SUFF_LIB),) \
    71937193        $(if-expr "$(KBUILD_TARGET)" == "win" || "$(KBUILD_TARGET)" == "os2" \
    7194                 ,$(SDK_VBoxLzfStatic_LIBS) $(SDK_VBoxZlibStatic_LIBS) $(SDK_VBoxLibLzmaStatic_LIBS) \
    7195                 ,$(SDK_VBoxLzf_LIBS) $(SDK_VBoxZlib_LIBS) $(SDK_VBoxLibLzma_LIBS)) \
     7194                ,$(SDK_VBoxLzfStatic_LIBS) $(SDK_VBoxZlibStatic_LATE_LIBS) $(SDK_VBoxLibLzmaStatic_LIBS) \
     7195                ,$(SDK_VBoxLzf_LIBS) $(SDK_VBoxZlib_LATE_LIBS) $(SDK_VBoxLibLzma_LIBS)) \
    71967196        ,$(TEMPLATE_$(TEMPLATE_VBoxR3AutoTest_EXTENDS)_LATE_LIBS.$(KBUILD_TARGET_ARCH)))
    71977197
  • trunk/src/VBox/Runtime/Makefile.kmk

    r106683 r106688  
    29932993endif
    29942994VBoxRT_LIBS                   += \
    2995         $(SDK_VBoxZlib_LIBS)
     2995        $(SDK_VBoxZlib_LATE_LIBS)
    29962996ifndef SDK_VBoxOpenSslStatic_LIBS
    29972997 VBoxRT_LIBS                  += \
     
    31553155endif
    31563156VBoxRT-x86_LIBS                  += \
    3157         $(SDK_VBoxZlib_LIBS-x86)
     3157        $(SDK_VBoxZlib-x86_LIBS)
    31583158ifndef SDK_VBoxOpenSslStatic_LIBS
    31593159 VBoxRT-x86_LIBS                 += \
  • trunk/src/VBox/Storage/testcase/Makefile.kmk

    r106683 r106688  
    159159
    160160 else
     161  if1of ($(KBUILD_TARGET), os2 win)
     162   vbox-img_SDKS := VBoxZlibStatic VBoxLzfStatic
     163  else
     164   vbox-img_SDKS := VBoxZlib VBoxLzf
     165  endif
     166  vbox-img_SDKS.win := VBoxNtDll
    161167  vbox-img_LIBS = \
    162168        $(VBOX_LIB_RUNTIME_STATIC)
    163   if1of ($(KBUILD_TARGET), os2 win)
    164    vbox-img_LIBS += \
    165         $(SDK_VBoxLzfStatic_LIBS) \
    166         $(SDK_VBoxZlibStatic_LIBS)
    167   else
    168    vbox-img_LIBS += \
    169         $(SDK_VBoxLzf_LIBS) \
    170         $(SDK_VBoxZlib_LIBS)
    171   endif
    172169  ifeq ($(KBUILD_TARGET),linux)
    173170   ifdef SDK_VBoxLibXml2_LIBS
     
    181178  else ifeq ($(KBUILD_TARGET),darwin)
    182179   vbox-img_LIBS += iconv
    183   else ifeq ($(KBUILD_TARGET),win)
    184    vbox-img_SDKS.win = VBoxNtDll
    185180  else ifeq ($(KBUILD_TARGET),solaris)
    186181   vbox-img_LIBS += kstat efi
     
    203198 vdkeystoremgr_TEMPLATE = VBoxR3Static
    204199 vdkeystoremgr_DEFS += IN_VBOXDDU IN_VBOXDDU_STATIC VBOX_HDD_NO_DYNAMIC_BACKENDS
     200 if1of ($(KBUILD_TARGET), os2 win)
     201  vdkeystoremgr_SDKS = VBoxZlibStatic
     202 else
     203  vdkeystoremgr_SDKS = VBoxZlib
     204 endif
    205205 vdkeystoremgr_SOURCES = \
    206206        vdkeystoremgr.cpp \
     
    211211        $(VBOX_LIB_RUNTIME_STATIC) \
    212212        $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
    213  if1of ($(KBUILD_TARGET), os2 win)
    214   vdkeystoremgr_LIBS += \
    215         $(SDK_VBoxLzfStatic_LIBS) \
    216         $(SDK_VBoxZlibStatic_LIBS)
    217  else
    218   vdkeystoremgr_LIBS += \
    219         $(SDK_VBoxLzf_LIBS) \
    220         $(SDK_VBoxZlib_LIBS)
    221  endif
    222213 ifeq ($(KBUILD_TARGET),linux)
    223214  ifdef SDK_VBoxLibXml2_LIBS
  • trunk/src/VBox/ValidationKit/Config.kmk

    r106683 r106688  
    9999ifneq ($(KBUILD_TARGET),win)
    100100 TEMPLATE_VBoxValidationKitR3_LATE_LIBS += \
    101         $(SDK_VBoxZlib_LIBS)
     101        $(SDK_VBoxZlib_LATE_LIBS)
    102102endif
    103103
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