summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-02-06 00:04:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-02-06 00:04:54 +0000
commit76ff8b54b3951bd03b658ee0a3205e4a68413645 (patch)
tree5fa63fa2c719d02c5632d8506f1c966bd66e896d /libcxx/lib
parentba65d61767db168c4f2350357307b4577ff7f4eb (diff)
downloadbcm5719-llvm-76ff8b54b3951bd03b658ee0a3205e4a68413645.tar.gz
bcm5719-llvm-76ff8b54b3951bd03b658ee0a3205e4a68413645.zip
[build] Create the link for the final library install name in the lib dir.
- Otherwise, we never were actually linking against the right library when building the test applications. llvm-svn: 174470
Diffstat (limited to 'libcxx/lib')
-rwxr-xr-xlibcxx/lib/buildit15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcxx/lib/buildit b/libcxx/lib/buildit
index 0b1f6e5a196..f8e31781fde 100755
--- a/libcxx/lib/buildit
+++ b/libcxx/lib/buildit
@@ -119,6 +119,21 @@ $CC *.o $RC_CFLAGS $LDSHARED_FLAGS $EXTRA_FLAGS
#libtool -static -o libc++.a *.o
+# Create the link for the final library name, so that we can use this directory
+# as a link target for the tests.
+case $TRIPLE in
+ *-apple-*)
+ rm -f libc++.dylib
+ ln -s libc++.1.dylib libc++.dylib
+ ;;
+ *-*-mingw*)
+ ;;
+ *)
+ rm -f libc++.so
+ ln -s libc++.so.1 libc++.so
+ ;;
+esac
+
if [ -z $RC_XBS ]
then
rm *.o
OpenPOWER on IntegriCloud