diff -Naurp llvm-3.0.src.orig/runtime/libprofile/Makefile llvm-3.0.src/runtime/libprofile/Makefile
--- llvm-3.0.src.orig/runtime/libprofile/Makefile	2011-07-19 16:33:42.000000000 -0700
+++ llvm-3.0.src/runtime/libprofile/Makefile	2012-04-20 10:01:33.000000000 -0700
@@ -40,10 +40,12 @@ ifeq ($(HOST_OS),Darwin)
                          -Wl,-dead_strip \
                          -Wl,-seg1addr -Wl,0xE0000000 
 
-    # Mac OS X 10.4 and earlier tools do not allow a second -install_name on
-    # command line.
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
-    ifneq ($(DARWIN_VERS),8)
+    ifeq ($(DARWIN_VERS),8)
+       LLVMLibsOptions    := $(LLVMLibsOptions)  \
+                            -Wl,-dylib_install_name \
+                            -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
+    else
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
                             -Wl,-install_name \
                             -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
diff -Naurp llvm-3.0.src.orig/tools/edis/Makefile llvm-3.0.src/tools/edis/Makefile
--- llvm-3.0.src.orig/tools/edis/Makefile	2011-08-02 15:53:48.000000000 -0700
+++ llvm-3.0.src/tools/edis/Makefile	2012-04-20 10:06:48.000000000 -0700
@@ -42,9 +42,12 @@ ifeq ($(HOST_OS),Darwin)
                               -Wl,-compatibility_version -Wl,1
     endif
 
-    # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
-    ifneq ($(DARWIN_VERS),8)
+    ifeq ($(DARWIN_VERS),8)
+       LLVMLibsOptions    := $(LLVMLibsOptions)  \
+                            -Wl,-dylib_install_name \
+                            -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
+    else
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
                             -Wl,-install_name \
                             -Wl,"@rpath/lib$(LIBRARYNAME)$(SHLIBEXT)"
diff -Naurp llvm-3.0.src.orig/tools/llvm-shlib/Makefile llvm-3.0.src/tools/llvm-shlib/Makefile
--- llvm-3.0.src.orig/tools/llvm-shlib/Makefile	2011-10-03 17:30:34.000000000 -0700
+++ llvm-3.0.src/tools/llvm-shlib/Makefile	2012-04-20 10:03:56.000000000 -0700
@@ -54,9 +54,12 @@ ifeq ($(HOST_OS),Darwin)
                          -Wl,-dead_strip \
                          -Wl,-seg1addr -Wl,0xE0000000 
 
-    # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
-    ifneq ($(DARWIN_VERS),8)
+    ifeq ($(DARWIN_VERS),8)
+       LLVMLibsOptions    := $(LLVMLibsOptions)  \
+                            -Wl,-dylib_install_name \
+                            -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
+    else
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
                             -Wl,-install_name \
                             -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
diff -Naurp llvm-3.0.src.orig/tools/lto/Makefile llvm-3.0.src/tools/lto/Makefile
--- llvm-3.0.src.orig/tools/lto/Makefile	2011-03-28 17:01:39.000000000 -0700
+++ llvm-3.0.src/tools/lto/Makefile	2012-04-20 10:04:25.000000000 -0700
@@ -49,9 +49,12 @@ ifeq ($(HOST_OS),Darwin)
                          -Wl,-dead_strip \
                          -Wl,-seg1addr -Wl,0xE0000000 
 
-    # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
-    ifneq ($(DARWIN_VERS),8)
+    ifeq ($(DARWIN_VERS),8)
+       LLVMLibsOptions    := $(LLVMLibsOptions)  \
+                            -Wl,-dylib_install_name \
+                            -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
+    else
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
                             -Wl,-install_name \
                             -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
