summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-05-11 19:42:16 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-05-11 19:42:16 +0000
commit3e519524c118651123eecf60c2bbc5d65ad9bac3 (patch)
treeb2dd4168cfe448920a602cd7d2e40f95da187153 /libcxx/lib
parent9132c59d43b6c590c9bb33496eebf9f192d6857a (diff)
downloadbcm5719-llvm-3e519524c118651123eecf60c2bbc5d65ad9bac3.tar.gz
bcm5719-llvm-3e519524c118651123eecf60c2bbc5d65ad9bac3.zip
libcxx initial import
llvm-svn: 103490
Diffstat (limited to 'libcxx/lib')
-rwxr-xr-xlibcxx/lib/buildit42
1 files changed, 42 insertions, 0 deletions
diff --git a/libcxx/lib/buildit b/libcxx/lib/buildit
new file mode 100755
index 00000000000..6cbe971ad7c
--- /dev/null
+++ b/libcxx/lib/buildit
@@ -0,0 +1,42 @@
+if [ `basename $(pwd)` != "lib" ]
+then
+ echo "current directory must be lib"
+ exit 1
+fi
+
+if [ -z $CC ]
+then
+ CC=g++
+fi
+
+if [ -z $RC_BUILDIT ]
+then
+ RC_CFLAGS="-arch i386 -arch ppc -arch x86_64"
+fi
+
+if [ -z $RC_BUILDIT ]
+then
+ rm libc++.1.dylib
+fi
+
+set -x
+
+for FILE in $(ls ../src/*.cpp); do
+ $CC -c -g -Os $RC_CFLAGS -nostdinc++ -I../include $FILE
+done
+
+$CC -dynamiclib -nodefaultlibs $RC_CFLAGS -current_version 1 \
+ -compatibility_version 1 \
+ -o libc++.1.dylib *.o \
+ -install_name /usr/lib/libc++.dylib \
+ -Wl,-reexport_library,/usr/lib/libc++abi.dylib \
+ /usr/lib/libSystem.B.dylib
+
+#libtool -static -o libc++.a *.o
+
+set +x
+
+if [ -z $RC_BUILDIT ]
+then
+ rm *.o
+fi
OpenPOWER on IntegriCloud