summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-03 20:09:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-03 20:09:38 +0000
commit172e105cf58333a1a55468095c51d22868296a68 (patch)
tree952f621c0039e7fdd61b3fe3945f4c60e9b4fd64 /test
parent7edbe041a72d9663d612abe1d9a978d3b9c66444 (diff)
downloadcompiler-rt-172e105cf58333a1a55468095c51d22868296a68.tar.gz
compiler-rt-172e105cf58333a1a55468095c51d22868296a68.tar.bz2
compiler-rt-172e105cf58333a1a55468095c51d22868296a68.tar.xz
Use -lc -lm to link with (in tests) on non-Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@80939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rwxr-xr-xtest/Unit/test5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Unit/test b/test/Unit/test
index 9937966e..e5f540e9 100755
--- a/test/Unit/test
+++ b/test/Unit/test
@@ -3,6 +3,9 @@
ARCHS='<host>'
if test `uname` = "Darwin"; then
ARCHS="i386 x86_64 ppc"
+ LIBS="-lSystem"
+else
+ LIBS="-lc -lm"
fi
for ARCH in $ARCHS; do
@@ -27,7 +30,7 @@ for ARCH in $ARCHS; do
# this test requires an extra compiler option
EXTRA="-fnested-functions"
fi
- if gcc $CFLAGS $FILE ../../Release/libcompiler_rt.Optimized.a -lSystem $EXTRA
+ if gcc $CFLAGS $FILE ../../Release/libcompiler_rt.Optimized.a $LIBS $EXTRA
then
echo "Testing $FILE for $ARCH"
if ./a.out