From ccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 16 Sep 2010 00:42:32 +0000 Subject: [PATCH] build: Add support for a TOOL_ORDER_FILE variable so commands can build with an order file on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114050 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index efafc82be2b..ee17b999fb4 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1325,6 +1325,18 @@ endif endif endif +#--------------------------------------------------------- +# Tool Order File Support +#--------------------------------------------------------- + +ifeq ($(HOST_OS),Darwin) +ifdef TOOL_ORDER_FINE + +LD.Flags += -Wl,-order_file,$(TOOL_ORDER_FILE) + +endif +endif + #--------------------------------------------------------- # Tool Version Info Support #---------------------------------------------------------