Skip to content
Snippets Groups Projects
Commit 3c8a7dfa authored by Daniel Dunbar's avatar Daniel Dunbar
Browse files

Use -lc -lm to link with (in tests) on non-Darwin.

llvm-svn: 80939
parent f9812f75
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment