VirtualBox

Changeset 72093 in vbox


Ignore:
Timestamp:
May 3, 2018 2:02:30 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122485
Message:

Restrict old glibc support to Guest Additions only.
bugref:9112: Linux Additions: fix building binaries for older Linux user space
Old glibc support is only of interest when building the Guest Additions, so
this change restricts it to binaries which will become part of the Additions,
so that it can be enabled by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r72091 r72093  
    48344834  TEMPLATE_VBOXR3EXE_CXXFLAGS         += $(VBOX_GCC_WERR)
    48354835 endif
    4836  ifdef VBOX_WITH_OLD_GLIBC_SUPPORT
    4837   # Use older versions of APIs which were improved in versions of glibc later
    4838   # than what we are targetting, and do not use the stack protector, which
    4839   # needs glibc 2.4 or later.
    4840   TEMPLATE_VBOXR3EXE_CXXFLAGS.linux    = \
    4841         -include $(PATH_ROOT)/include/iprt/linux/symvers.h \
    4842         $(VBOX_GCC_fno-stack-protector)
    4843   TEMPLATE_VBOXR3EXE_CFLAGS.linux      = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.linux)
    4844  endif
    48454836TEMPLATE_VBOXR3EXE_CXXFLAGS.x86        = -m32
    48464837TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64      = -m64
     
    48744865TEMPLATE_VBOXR3EXE_LDFLAGS.sparc64     = -m64
    48754866TEMPLATE_VBOXR3EXE_LDFLAGS.linux       = -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed)
    4876  ifdef VBOX_WITH_OLD_GLIBC_SUPPORT
    4877   # The GNU_HASH ELF tag is not supported by older systems.
    4878 TEMPLATE_VBOXR3EXE_LDFLAGS.linux      += -Wl,--hash-style=sysv
    4879  endif
    48804867TEMPLATE_VBOXR3EXE_LDFLAGS.solaris     = -Wl,-z,ignore # same as VBOX_LD_as_needed
    48814868TEMPLATE_VBOXR3EXE_LDFLAGS.debug       = $(VBOX_GCC_SANITIZER_FLAGS)
     
    66486635endif
    66496636
     6637ifdef VBOX_WITH_OLD_GLIBC_SUPPORT
     6638# Use older versions of APIs which were improved in versions of glibc later
     6639# than what we are targetting, and do not use the stack protector, which
     6640# needs glibc 2.4 or later.
     6641 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux    = \
     6642        -include $(PATH_ROOT)/include/iprt/linux/symvers.h \
     6643        $(VBOX_GCC_fno-stack-protector)
     6644 TEMPLATE_VBOXGUESTR3EXE_CFLAGS.linux      = $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.linux)
     6645# The GNU_HASH ELF tag is not supported by older systems.
     6646 TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux      += -Wl,--hash-style=sysv
     6647endif
     6648
    66506649#
    66516650# Template for building normal R3 programs for the guest additions.
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