Changeset 72114 in vbox
- Timestamp:
- May 4, 2018 4:00:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Config.kmk (modified) (2 diffs)
-
src/VBox/Additions/x11/VBoxClient/Makefile.kmk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r72093 r72114 6635 6635 endif 6636 6636 6637 ifdef VBOX_WITH_OLD_GLIBC_SUPPORT6638 6637 # Use older versions of APIs which were improved in versions of glibc later 6639 6638 # than what we are targetting, and do not use the stack protector, which 6640 6639 # needs glibc 2.4 or later. 6641 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux = \6640 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux = \ 6642 6641 -include $(PATH_ROOT)/include/iprt/linux/symvers.h \ 6643 6642 $(VBOX_GCC_fno-stack-protector) 6644 TEMPLATE_VBOXGUESTR3EXE_CFLAGS.linux = $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux)6643 TEMPLATE_VBOXGUESTR3EXE_CFLAGS.linux = $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux) 6645 6644 # The GNU_HASH ELF tag is not supported by older systems. 6646 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux += -Wl,--hash-style=sysv 6647 endif 6645 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux += -Wl,--hash-style=sysv 6648 6646 6649 6647 # … … 6848 6846 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 6849 6847 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 6850 ifdef VBOX_WITH_OLD_GLIBC_SUPPORT 6851 # The GNU_HASH ELF tag is not supported by older systems. 6848 # The GNU_HASH ELF tag is not supported by older glibc dynamic linkers. 6852 6849 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.linux = --hash-style=sysv 6853 endif6854 6850 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 6855 6851 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS = -r -
trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
r71708 r72114 68 68 supc++ \ 69 69 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. 76 ifeq ($(KBUILD_TARGET),linux) 78 77 VBoxClient_LIBS += \ 79 78 $(PATH_ROOT)/src/VBox/Additions/x11/VBoxClient/chk_stubs.c 80 79 VBoxClient_LDFLAGS.amd64 += \ 81 80 -Wl,--wrap=memcpy 82 endif83 81 endif 84 82
Note:
See TracChangeset
for help on using the changeset viewer.

