libtool-patches
[Top][All Lists]
Advanced

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

Patch for problem with libtool version 1.5 and dlltool version 2.14.90 u


From: Marvin Greenberg
Subject: Patch for problem with libtool version 1.5 and dlltool version 2.14.90 under cygwin
Date: Sun, 07 Mar 2004 22:11:06 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

dlltool --output-defs sometimes is generating something that looks like a comment, e.g. (from a cygwin build attempt of subversion 1.0.0)

I don't really understand why dlltool is generating these, or why libtool needs to parse and rewrite the generated .defs file. But It handles these lines starting with a ';' badly and mangles the resulting .def. The included patch fixes this problem.


------------------Example dlltool generated .def file
EXPORTS
        svn_diff_output @ 1
        svn_diff__adler32 @ 2
;       svn_diff(double, int, float, float)
        svn_diff__diff @ 3
        svn_diff__get_tokens @ 4
;       svn_diff(long, char, short)
        svn_diff__lcs @ 5
        svn_diff__resolve_conflict @ 6
        svn_diff__tree_create @ 7
        svn_diff_contains_conflicts @ 8
        svn_diff_contains_diffs @ 9
        svn_diff_diff @ 10
        svn_diff_diff3 @ 11
        svn_diff_diff4 @ 12
        svn_diff_file_diff @ 13
        svn_diff_file_diff3 @ 14
        svn_diff_file_diff4 @ 15
        svn_diff_file_output_merge @ 16
        svn_diff_file_output_unified @ 17


----------------Patch to ignore these lines ------------------------

--- libtool.orig        2004-03-07 20:42:53.777347500 -0500
+++ libtool     2004-03-07 21:19:46.692691000 -0500
@@ -190,7 +190,7 @@
       else
        echo EXPORTS > \$output_objdir/\$soname-def;
        _lt_hint=1;
-       cat \$export_symbols | while read symbol; do
+       grep '^[^;]' \$export_symbols | while read symbol; do
         set dummy \\\$symbol;
         case \\\$# in
           2) echo \\\"   \\\$2 @ \\\$_lt_hint ; \\\" >> 
\$output_objdir/\$soname-def;;




reply via email to

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