VirtualBox

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


Ignore:
Timestamp:
Feb 9, 2018 3:55:18 PM (7 years ago)
Author:
vboxsync
Message:

Additions/linux: support producing builds which work with glibc 2.3.
bugref:9112: tools: update i386 Linux Additions build tool
Add an option - VBOX_WITH_OLD_GLIBC_SUPPORT - for producing Linux Additions
builds which work with glibc 2.3, by not referencing symbols which were
introduced later, including improved versions of APIs supported in glibc 2.3,
by not using GNU_HASH tags and by not using the stack protector.

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
1 added
1 edited

Legend:

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

    r70126 r70936  
    6868        supc++ \
    6969        gcc_eh
     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)
     78VBoxClient_LIBS    += \
     79        $(PATH_ROOT)/src/VBox/Additions/x11/VBoxClient/chk_stubs.c
     80VBoxClient_LDFLAGS.amd64 += \
     81        -Wl,--wrap=memcpy
     82 endif
     83endif
     84
    7085ifdef VBOX_X11_SEAMLESS_GUEST
    7186 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
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