[llvm-commits] [compiler-rt] r80939 - /compiler-rt/trunk/test/Unit/test
Daniel Dunbar
daniel at zuster.org
Thu Sep 3 13:09:38 PDT 2009
Author: ddunbar
Date: Thu Sep 3 15:09:38 2009
New Revision: 80939
URL: http://llvm.org/viewvc/llvm-project?rev=80939&view=rev
Log:
Use -lc -lm to link with (in tests) on non-Darwin.
Modified:
compiler-rt/trunk/test/Unit/test
Modified: compiler-rt/trunk/test/Unit/test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/Unit/test?rev=80939&r1=80938&r2=80939&view=diff
==============================================================================
--- compiler-rt/trunk/test/Unit/test (original)
+++ compiler-rt/trunk/test/Unit/test Thu Sep 3 15:09:38 2009
@@ -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 @@
# 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
More information about the llvm-commits
mailing list