VirtualBox

Changeset 52196 in vbox


Ignore:
Timestamp:
Jul 25, 2014 3:34:50 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95255
Message:

-ffunction-sections + -gc-sections for solaris as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r52194 r52196  
    52185218TEMPLATE_VBOXGUESTR3DLL_EXTENDS   = VBOXGUESTR3EXE
    52195219## @todo add a INSTFUN that separates dlls and libs.
    5220 if1of ($(KBUILD_TARGET), linux)
     5220if1of ($(KBUILD_TARGET), linux solaris)
     5221 TEMPLATE_VBOXGUESTR3DLL_DEFS     = $(TEMPLATE_VBOXGUESTR3EXE_DEFS) PIC
    52215222 TEMPLATE_VBOXGUESTR3DLL_CFLAGS   = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fPIC -ffunction-sections
    52225223 TEMPLATE_VBOXGUESTR3DLL_CXXFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fPIC -ffunction-sections
     5224 TEMPLATE_VBOXGUESTR3DLL_LDFLAGS  = $(TEMPLATE_VBOXGUESTR3EXE_LDFLAGS) -fPIC
    52235225else ifn1of ($(KBUILD_TARGET), darwin os2 win)
    52245226 TEMPLATE_VBOXGUESTR3DLL_DEFS     = $(TEMPLATE_VBOXGUESTR3EXE_DEFS) PIC
     
    53685370TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS                  = $(TEMPLATE_VBOXGUESTR3DLL_CFLAGS) -std=c99
    53695371if1of ($(KBUILD_TARGET), linux)
    5370  TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS                += -Wno-conversion -Wno-unused-parameter -ffunction-sections
     5372 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS                += -Wno-conversion -Wno-unused-parameter
    53715373 ifeq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),)
    53725374  TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS               += $(VBOX_GCC_Wno-variadic-macros)
    53735375 endif
     5376endif
     5377if1of ($(KBUILD_TARGET), linux solaris)
     5378 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS                += -ffunction-sections
    53745379endif
    53755380TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XORGMOD RTMEM_NO_WRAP_TO_EF_APIS
     
    53775382 TEMPLATE_VBOXGUESTR3XORGMOD_DEFS += _XSERVER64
    53785383endif
    5379 if1of ($(KBUILD_TARGET), linux)
     5384if1of ($(KBUILD_TARGET), linux solaris)
    53805385 TEMPLATE_VBOXGUESTR3XORGMOD_LDFLAGS = $(TEMPLATE_VBOXGUESTR3DLL_LDFLAGS) -Wl,-gc-sections
    53815386endif
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