Use -Wl to specify -rpath correctly.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187431 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbtest.py b/test/lldbtest.py
index d4bb86c..3fbaff1 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -1318,7 +1318,7 @@
                  'EXE' : exe_name,
                  'CFLAGS_EXTRAS' : "%s -stdlib=libc++" % stdflag,
                  'FRAMEWORK_INCLUDES' : "-F%s" % self.lib_dir,
-                 'LD_EXTRAS' : "%s -rpath %s" % (dsym, self.lib_dir),
+                 'LD_EXTRAS' : "%s -Wl,-rpath,%s" % (dsym, self.lib_dir),
                 }
         elif sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
             d = {'CXX_SOURCES' : sources,