diff options
author | Steve Huston <shuston@riverace.com> | 2004-10-07 17:06:37 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-10-07 17:06:37 +0000 |
commit | e95276f3189faf11443371bbb5f0f3adb5cfef82 (patch) | |
tree | 986cad40e59f8ce74ec760b4433aaa50b4d18f57 /modules/AutomakeWorkspaceCreator.pm | |
parent | 4212fb41d84382d0f728c147d65b93a7e8308a3a (diff) | |
download | MPC-e95276f3189faf11443371bbb5f0f3adb5cfef82.tar.gz |
ChangeLogTag:Thu Oct 7 13:03:28 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'modules/AutomakeWorkspaceCreator.pm')
-rw-r--r-- | modules/AutomakeWorkspaceCreator.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/AutomakeWorkspaceCreator.pm b/modules/AutomakeWorkspaceCreator.pm index 5e930f59..c1581903 100644 --- a/modules/AutomakeWorkspaceCreator.pm +++ b/modules/AutomakeWorkspaceCreator.pm @@ -271,9 +271,12 @@ sub write_comps { ## This scheme relies on automake.mpd emitting the 'la' libs first. if ($look_for_libs) { - if ( /^\s+(lib(\w+).la)/ ) { - my $libfile = $1; - my $libname = $2; + my @libs = /\s+(lib(\w+).la)/gm; + my $libcount = @libs / 2; + my $i = 0; + while ($i < $libcount) { + my $libfile = (@libs)[$i*2]; + my $libname = (@libs)[$i*2+1]; my $reldir = $$liblocs{$libname}; if ($reldir) { s/$libfile/\$(top_builddir)\/$reldir\/$libfile/; @@ -281,8 +284,9 @@ sub write_comps { else { $self->warning("No reldir found for $libname ($libfile)."); } + $i++; } - else { + if ($libcount == 0) { $look_for_libs = 0; } } |