VirtualBox

Changeset 6629 in vbox


Ignore:
Timestamp:
Jan 30, 2008 8:30:03 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27690
Message:

added --as-needed to Linux linker flags again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r6620 r6629  
    10061006VBOX_GCC_CHECK_CC = $(2)
    10071007VBOX_GCC_CHECK_CXX = $(2)
     1008VBOX_GCC_CHECK_LD = $(2)
    10081009VBOX_GCC32_CHECK_CXX = $(2)
    10091010else
     
    10161017   if $(TOOL_$(VBOX_GCC_TOOL)_CXX) $(1) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \
    10171018   then echo "$(1)"; \
     1019   else echo "$(2)"; fi; )
     1020
     1021VBOX_GCC_CHECK_LD = $(shell \
     1022   if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) -nostdlib -o /dev/null -xc /dev/null > /dev/null 2>&1 ;\
     1023   then echo "-Wl,$(1)"; \
    10181024   else echo "$(2)"; fi; )
    10191025
     
    10521058# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2.
    10531059        $(APPEND) '$@' 'VBOX_GCC_mtune-generic         ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)'
     1060        $(APPEND) '$@' 'VBOX_LD_as_needed              ?= $(call VBOX_GCC_CHECK_LD,--as-needed,)'
    10541061ifneq ($(BUILD_TARGET),l4)
    10551062# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number
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