[llvm-branch-commits] [cfe-branch] r108498 - /cfe/branches/Apple/williamson-IB/ClangBNI.mk

Daniel Dunbar daniel at zuster.org
Thu Jul 15 19:03:01 PDT 2010


Author: ddunbar
Date: Thu Jul 15 21:03:01 2010
New Revision: 108498

URL: http://llvm.org/viewvc/llvm-project?rev=108498&view=rev
Log:
Sync with Whitney Makefiles.

Modified:
    cfe/branches/Apple/williamson-IB/ClangBNI.mk

Modified: cfe/branches/Apple/williamson-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/williamson-IB/ClangBNI.mk?rev=108498&r1=108497&r2=108498&view=diff
==============================================================================
--- cfe/branches/Apple/williamson-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/williamson-IB/ClangBNI.mk Thu Jul 15 21:03:01 2010
@@ -84,6 +84,8 @@
 
 # Default project (clang).
 
+# Don't install any archive files.
+Extra_Make_Variables += NO_INSTALL_ARCHIVES=1
 # Install root links and license.
 Post_Install_RootLinks := 1
 Post_Install_OpenSourceLicense := 1
@@ -172,6 +174,10 @@
 endif
 endif
 
+# When building libLTO as part of Clang, we need to offset the version to keep
+# the sequencing monotonic.
+Clang_Make_Variables += LLVM_LTO_VERSION_OFFSET=3000
+
 # Set configure flags.
 Configure_Flags = --enable-targets=$(LLVM_Backends) \
 		  --enable-optimized \
@@ -417,6 +423,10 @@
 	  ln -sf clang.1 $(DSTROOT)/$(Install_Prefix)/share/man/man1/clang++.1; \
 	  ln -sf clang.1 $(DSTROOT)/usr/share/man/man1/clang++.1; \
 	fi
+	if [ -f $(DSTROOT)/$(Install_Prefix)/lib/libLTO.dylib ]; then \
+	  $(MKDIR) -p $(DSTROOT)/usr/lib; \
+	  ln -sf ../../$(Install_Prefix)/lib/libLTO.dylib $(DSTROOT)/usr/lib/libLTO.dylib; \
+	fi
 
 install-clang-opensourcelicense: install-clang_final
 	$(MKDIR) $(OSV)





More information about the llvm-branch-commits mailing list