VirtualBox

Changeset 71694 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Apr 6, 2018 8:27:41 AM (7 years ago)
Author:
vboxsync
Message:

Make building Linux Additions compatible with old GLIBC versions default.
bugref:9112: Linux Additions: fix building binaries for older Linux user space
Remove VBOX_WITH_OLD_GLIBC_SUPPORT as a separate build option and apply it to
Additions binaries (and only them) by default.

File:
1 edited

Legend:

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

    r70936 r71694  
    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
     71# The following is for ensuring binary compatibility for old Linux guests.
     72# This has to be in LIBS, so as to be linked in after supc++ and gcc_eh, which
     73# depend on the symbols it provides.  Static supc++ and gcc_eh on at least
     74# Ubuntu 17.04 contain references to __sprintf_chk and __stack_chk_fail.
     75# Furthermore, they contain references to memcpy, which needs to be resolved
     76# to memcpy@GLIBC_2.2.5, which we solve in a not-very-satisfactory way with a
     77# wrapper.
     78ifeq ($(KBUILD_TARGET),linux)
    7879VBoxClient_LIBS    += \
    7980        $(PATH_ROOT)/src/VBox/Additions/x11/VBoxClient/chk_stubs.c
    8081VBoxClient_LDFLAGS.amd64 += \
    8182        -Wl,--wrap=memcpy
    82  endif
    8383endif
    8484
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