VirtualBox

Changeset 5879 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
Nov 28, 2007 10:18:04 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26369
Message:

check for --as-needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r5877 r5879  
    945945   else echo "$(2)"; fi; )
    946946
     947VBOX_GCC_CHECK_LD =$(shell \
     948   if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,--help 2>&1 | grep -q -- $(1); \
     949   then echo "-Wl,$(1)"; \
     950   else echo "$(2)"; fi; )
     951
    947952VBOX_GCC32_CHECK_CXX = $(shell \
    948953   if $(TOOL_$(VBOX_GCC32_TOOL)_CXX) $(1) -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1; \
     
    972977        @# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2.
    973978        $(APPEND) "$@" "VBOX_GCC_mtune-generic         ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)"
     979        $(APPEND) "$@" "VBOX_LD_as_needed              ?= $(call VBOX_GCC_CHECK_LD,--as-needed,)"
    974980ifneq ($(BUILD_TARGET),l4)
    975981        @# 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