bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Incorrect PathName for $exported_symbols on Cygwin


From: Ralf Wildenhues
Subject: Re: FYI: Incorrect PathName for $exported_symbols on Cygwin
Date: Thu, 3 Feb 2005 17:31:06 +0100
User-agent: Mutt/1.5.6+20040907i

* Ralf Wildenhues wrote on Thu, Feb 03, 2005 at 01:57:51PM CET:
> 
> FYI: I'm checking in the following patch (yes, eventually there will be
> a test case for this) on branch-1-5.  The other ones need a non-trivial
> forward-port.

Checked the following in on HEAD.
HEAD actually fails on other systems as well, for example on linux.

Regards,
Ralf

2005-02-03  Reid Spencer  <address@hidden>,
            Ralf Wildenhues  <address@hidden>

        * config/ltmain.m4sh (func_generate_dlsyms): Fix broken subdir
        path computation, exposed by using `-dlopen self'.  Fix broken
        sed script exposed by additionally using `-export-symbols FILE'.

Index: config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.51
diff -u -r1.51 ltmain.m4sh
--- config/ltmain.m4sh  3 Feb 2005 03:53:12 -0000       1.51
+++ config/ltmain.m4sh  3 Feb 2005 16:20:31 -0000
@@ -803,27 +803,27 @@
 
          # Prepare the list of exported symbols
          if test -z "$export_symbols"; then
-           export_symbols="$output_objdir/$output.exp"
+           export_symbols="$output_objdir/$outputname.exp"
            $opt_dry_run || {
              $RM $export_symbols
              eval "${SED} -n -e '/^: @address@hidden/d' -e 's/^.* 
\(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
              case $host in
              *cygwin* | *mingw* )
-                eval "${ECHO} EXPORTS "'> "$output_objdir/$output.def"'
-                eval 'cat "$export_symbols" >> "$output_objdir/$output.def"'
+                eval "${ECHO} EXPORTS "'> "$output_objdir/$outputname.def"'
+                eval 'cat "$export_symbols" >> 
"$output_objdir/$outputname.def"'
                ;;
              esac
            }
          else
            $opt_dry_run || {
-             eval "${SED} -e 's/\([[]][[.*^$]]\)/\\\1/g' -e 's/^/ /' -e 
's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
+             eval "${SED} -e 's/\([[ ]][[.*^$]]\)/\\\1/g' -e 's/^/ /' -e 
's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
              case $host in
                *cygwin | *mingw* )
-                 eval "${ECHO} EXPORTS "'> "$output_objdir/$output.def"'
-                 eval 'cat "$output_objdir/$output.exp" >> 
"$output_objdir/$output.def"'
+                 eval "${ECHO} EXPORTS "'> "$output_objdir/$outputname.def"'
+                 eval 'cat "$output_objdir/$outputname.exp" >> 
"$output_objdir/$outputname.def"'
                  ;;
              esac
-             eval '$GREP -f "$output_objdir/$output.exp" < "$nlist" > 
"$nlist"T'
+             eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > 
"$nlist"T'
              eval '$MV "$nlist"T "$nlist"'
            }
          fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]