build: Add support for a TOOL_ORDER_FILE variable so commands can build with an
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Sep 2010 00:42:32 +0000 (00:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Sep 2010 00:42:32 +0000 (00:42 +0000)
order file on Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114050 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index efafc82be2b8cf0a36deb396ca47d0a1bc297cfb..ee17b999fb420c5952fc3d7b36ac1ac38c5f17f3 100644 (file)
@@ -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
 #---------------------------------------------------------