summaryrefslogtreecommitdiff
path: root/autoconf/ltmain.sh
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-24 00:15:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-24 00:15:20 +0000
commite32beb78d5780fc05ff4e104f49e05c3d6c41f40 (patch)
tree06dcc8c72b9399c13752d1c958e277d7cb259de9 /autoconf/ltmain.sh
parenta36c9a4dd3658061951364ee03e2e64735fa2aa2 (diff)
downloadllvm-e32beb78d5780fc05ff4e104f49e05c3d6c41f40.tar.gz
llvm-e32beb78d5780fc05ff4e104f49e05c3d6c41f40.tar.bz2
llvm-e32beb78d5780fc05ff4e104f49e05c3d6c41f40.tar.xz
Fix a bug in libtool's ltmain.sh. On Cygwin the "$output.exp" expression
expands to a full path name. Substitute $outputname.exp" instead and it makes a viable temporary file name. This gets around the problem with lli on Cygwin linking but not having any "C" library functions linked into it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/ltmain.sh')
-rw-r--r--autoconf/ltmain.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoconf/ltmain.sh b/autoconf/ltmain.sh
index 761e1fd509..38479b1fbd 100644
--- a/autoconf/ltmain.sh
+++ b/autoconf/ltmain.sh
@@ -4327,12 +4327,12 @@ extern \"C\" {
# Prepare the list of exported symbols
if test -z "$export_symbols"; then
- export_symbols="$output_objdir/$output.exp"
+ export_symbols="$output_objdir/$outputname.exp"
$run $rm $export_symbols
$run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
else
- $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
- $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
+ $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
$run eval 'mv "$nlist"T "$nlist"'
fi
fi