llvm.org GIT mirror llvm / f8463a3
Add the -ldl library option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32369 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6060 opts="$outdir/${name}.opt.s"
6161 optprog="$outdir/${name}.opt"
6262 optout="$outdir/${name}.opt.out"
63 ldflags="-lstdc++ -lm -ldl -lc"
6364
6465 echo "Test Name: $name"
6566 echo "Unoptimized program: $prog"
8081
8182 # Generate the non-optimized program
8283 llc "$bcfile" -o "$s" -f || exit 1
83 gcc "$s" -o "$prog" -lstdc++ -lc -lm || exit 1
84 gcc "$s" -o "$prog" $ldflags || exit 1
8485
8586 # Define the list of optimizations to run. This comprises the same set of
8687 # optimizations that gccas and gccld run, in the same order.
9596 opt $switches_to_use "$bcfile" -o "$optbc" -f || exit
9697 llvm-dis "$optbc" -o "$optll" -f || exit
9798 llc "$optbc" -o "$opts" -f || exit
98 gcc "$opts" -o "$optprog" -lstdc++ -lc -lm || exit
99 gcc "$opts" -o "$optprog" $ldflags || exit
99100 "$prog" $args > "$out" 2>&1
100101 ex1=$?
101102 "$optprog" $args > "$optout" 2>&1