diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-08 18:58:38 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-08 18:58:38 +0000 |
commit | f8463a38bf04b822d009e9e4eaae2e4a3c930da4 (patch) | |
tree | 9d9189d9fa4c845981235ee2b424abeda794cc05 | |
parent | cc132cd9feef765fe70284183c0f997b4faa5483 (diff) | |
download | external_llvm-f8463a38bf04b822d009e9e4eaae2e4a3c930da4.zip external_llvm-f8463a38bf04b822d009e9e4eaae2e4a3c930da4.tar.gz external_llvm-f8463a38bf04b822d009e9e4eaae2e4a3c930da4.tar.bz2 |
Add the -ldl library option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32369 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/findmisopt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/findmisopt b/utils/findmisopt index f8099a9..8ee9cd8 100755 --- a/utils/findmisopt +++ b/utils/findmisopt @@ -61,6 +61,7 @@ optll="$outdir/${name}.opt.ll" opts="$outdir/${name}.opt.s" optprog="$outdir/${name}.opt" optout="$outdir/${name}.opt.out" +ldflags="-lstdc++ -lm -ldl -lc" echo "Test Name: $name" echo "Unoptimized program: $prog" @@ -81,7 +82,7 @@ llvm-dis "$bcfile" -o "$ll" -f || exit 1 # Generate the non-optimized program llc "$bcfile" -o "$s" -f || exit 1 -gcc "$s" -o "$prog" -lstdc++ -lc -lm || exit 1 +gcc "$s" -o "$prog" $ldflags || exit 1 # Define the list of optimizations to run. This comprises the same set of # optimizations that gccas and gccld run, in the same order. @@ -96,7 +97,7 @@ function tryit { opt $switches_to_use "$bcfile" -o "$optbc" -f || exit llvm-dis "$optbc" -o "$optll" -f || exit llc "$optbc" -o "$opts" -f || exit - gcc "$opts" -o "$optprog" -lstdc++ -lc -lm || exit + gcc "$opts" -o "$optprog" $ldflags || exit "$prog" $args > "$out" 2>&1 ex1=$? "$optprog" $args > "$optout" 2>&1 |