VirtualBox

Changeset 86431 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Oct 2, 2020 9:13:52 PM (4 years ago)
Author:
vboxsync
Message:

Installer/linux: Include the sanitizer libs in 'asan' builds. 3rd try. bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r86429 r86431  
    106106        $(linux-misc_0_OUTDIR)/generated.sh=>scripts/generated.sh \
    107107        $(if $(VBOX_WITH_QTGUI),$(linux-misc_0_OUTDIR)/virtualbox.desktop,)
     108ifeq ($(KBUILD_TYPE),asan)
     109linux-misc_SOURCES += $(foreach lib,$(VBOX_GCC_SANITIZER_SO_FILES) \
     110        ,$(lib)=>$(notdir $(lib)) $(lib)=>testcase/$(notdir $(lib)) $(lib)=>tools/$(notdir $(lib)) )
     111endif
    108112linux-misc_CLEAN = \
    109113        $(linux-misc_0_OUTDIR)/generated.sh \
     
    353357endif
    354358
     359# The sanitizer shared objects match the compiler we're using (HACK).
     360ifeq ($(KBUILD_TYPE),asan)
     361 VBOX_LNX_NO_STRIP += $(notdir $(VBOX_GCC_SANITIZER_SO_FILES))
     362endif
     363
    355364# Icons
    356365VBOX_MIME_ICONS = \
     
    439448        $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
    440449        $(QUIET)$(MKDIR) -p $(@D)
    441 ifeq ($(KBUILD_TYPE),asan) # Hack! Include libasan.so.* and libubsan.so.* so we have the matching version when testing.
    442         $(CP_EXT) -v -- `ldd "$(VBOX_LNX_INST_OUT_DIR)/archive/VBoxRT.so" | $(SED_EXT) -re '/lib(a|ub)san\.so/!d' -e 's/.* => //' -e 's/ \(0x[0-9a-fA-F]*\) *$(DOLLAR)//'` \
    443                 "$(VBOX_LNX_INST_OUT_DIR)/archive/" && $(ECHO_EXT) "force external"
    444 endif
    445450ifdef VBOX_USE_PBZIP2
    446451        $(QUIET)tar --dereference --owner 0 --group 0 \
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