VirtualBox

Changeset 72114 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 4, 2018 4:00:01 PM (7 years ago)
Author:
vboxsync
Message:

Additions/Linux: always build Additions complatible with old distributions.
bugref:9112: Linux Additions: fix building binaries for older Linux user space
A second attempt at making our Linux Additions binaries work with old versions
of glibc without any special configuration settings, now that the build
problem on EL5 is fixed.

File:
1 edited

Legend:

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

    r71708 r72114  
    6868        supc++ \
    6969        gcc_eh
    70 ifdef VBOX_WITH_OLD_GLIBC_SUPPORT
    71  # This has to be in LIBS, so as to be linked in after supc++ and gcc_eh, which
    72  # depend on the symbols it provides.  Static supc++ and gcc_eh on at least
    73  # Ubuntu 17.04 contain references to __sprintf_chk and __stack_chk_fail.
    74  # Furthermore, they contain references to memcpy, which needs to be resolved
    75  # to memcpy@GLIBC_2.2.5, which we solve in a not-very-satisfactory way with a
    76  # wrapper.
    77  ifeq ($(KBUILD_TARGET),linux)
     70# This has to be in LIBS, so as to be linked in after supc++ and gcc_eh, which
     71# depend on the symbols it provides.  Static supc++ and gcc_eh on at least
     72# Ubuntu 17.04 contain references to __sprintf_chk and __stack_chk_fail.
     73# Furthermore, they contain references to memcpy, which needs to be resolved
     74# to memcpy@GLIBC_2.2.5, which we solve in a not-very-satisfactory way with a
     75# wrapper.
     76ifeq ($(KBUILD_TARGET),linux)
    7877VBoxClient_LIBS    += \
    7978        $(PATH_ROOT)/src/VBox/Additions/x11/VBoxClient/chk_stubs.c
    8079VBoxClient_LDFLAGS.amd64 += \
    8180        -Wl,--wrap=memcpy
    82  endif
    8381endif
    8482
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