Prevent navigation to the non-existing homepage.
[www.jankratochvil.net.git] / project / libtool / Index.html.pl
1 #! /usr/bin/perl
2
3 # $Id$
4 # Main page of 'My::Project::libtool'
5 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; exactly version 2 of June 1991 is required
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20
21 package project::libtool::Index;
22 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
23 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
24 our $CVS_ID=q$Id$;
25 use strict;
26 use warnings;
27
28 BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
29 use My::Web;
30 Wuse 'My::Project';
31 Wuse 'project::libtool::ListItem';
32
33
34 My::Project->init_project(
35                 "__PACKAGE__"=>__PACKAGE__,
36                 "ListItem"=>\@project::libtool::ListItem::ListItem,
37                 );
38
39
40 print <<"HERE";
41 <p>When you include convenience library (<i>.a</i>) containing two conflicting name
42 objects (same basename from two different directories) only one of those two
43 object files will survive in &quot;<i>.libs/libA.lax/</i>&quot; arena:</p>
44 <pre>
45         rm -fr .libs/libA.lax/libB.a
46         mkdir .libs/libA.lax/libB.a
47         (cd .libs/libA.lax/libB.a &amp;&amp; ar x /abs/path/to/A/B/.libs/libB.a)
48 </pre>
49
50 <p>The patch implements automatic renaming of &quot;<i>*.*</i>&quot; to &quot;<i>*-@{[ '$' ]}seqnum.*</i>&quot;
51 in such case:</p>
52 <pre>
53         libtool: link: warning: object name conflicts; renaming object files
54         libtool: link: warning: to ensure that they will not overwrite
55         (cd .libs/libA.lax/libB.a &amp;&amp; ar xN 1 /abs/path/to/A/B/.libs/libB.a 'XconflictX.o' &amp;&amp; mv -f 'XconflictX.o' 'XconflictX-1.o')
56         (cd .libs/libA.lax/libB.a &amp;&amp; ar xN 2 /abs/path/to/A/B/.libs/libB.a 'XconflictX.o' &amp;&amp; mv -f 'XconflictX.o' 'XconflictX-2.o')
57 </pre>
58
59 <p>Although renaming to a new name may be confusing IMO there is no better option.
60 The original (conflicting) name is not left there in any instance to prevent
61 misleading confusion of different object file found than expected.</p>
62 HERE
63
64
65 My::Web->footer();