VirtualBox

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


Ignore:
Timestamp:
Apr 6, 2018 3:11:22 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121807
Message:

Revert r121784 and 121788: bugref:9112: Linux Additions: fix building binaries for older Linux user space

File:
1 edited

Legend:

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

    r71694 r71708  
    6868        supc++ \
    6969        gcc_eh
    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.
    78 ifeq ($(KBUILD_TARGET),linux)
     70ifdef 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)
    7978VBoxClient_LIBS    += \
    8079        $(PATH_ROOT)/src/VBox/Additions/x11/VBoxClient/chk_stubs.c
    8180VBoxClient_LDFLAGS.amd64 += \
    8281        -Wl,--wrap=memcpy
     82 endif
    8383endif
    8484
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette