[libcxx] r174470 - [build] Create the link for the final library install name in the lib dir.

Daniel Dunbar daniel at zuster.org
Tue Feb 5 16:04:54 PST 2013


Author: ddunbar
Date: Tue Feb  5 18:04:54 2013
New Revision: 174470

URL: http://llvm.org/viewvc/llvm-project?rev=174470&view=rev
Log:
[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.

Modified:
    libcxx/trunk/lib/buildit

Modified: libcxx/trunk/lib/buildit
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/lib/buildit?rev=174470&r1=174469&r2=174470&view=diff
==============================================================================
--- libcxx/trunk/lib/buildit (original)
+++ libcxx/trunk/lib/buildit Tue Feb  5 18:04:54 2013
@@ -119,6 +119,21 @@ $CC *.o $RC_CFLAGS $LDSHARED_FLAGS $EXTR
 
 #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





More information about the cfe-commits mailing list