summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateConfigurationBindings.pl
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-08-10 22:04:02 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-08-10 22:04:02 +0000
commit10db179b61f038a9b7c4fcdfae77699c6c75fcc2 (patch)
tree424ba0a71ec7620a8bf42301038ca24da00c4259 /lib/sbin/CreateConfigurationBindings.pl
parent18b0abf9e77dade6fd9f6b76b8020a5a16808db7 (diff)
Take REQUIRES and OPTIONAL into account when determining library link order
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4860 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CreateConfigurationBindings.pl')
-rw-r--r--lib/sbin/CreateConfigurationBindings.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sbin/CreateConfigurationBindings.pl b/lib/sbin/CreateConfigurationBindings.pl
index 82466336..0abd5f16 100644
--- a/lib/sbin/CreateConfigurationBindings.pl
+++ b/lib/sbin/CreateConfigurationBindings.pl
@@ -134,18 +134,18 @@ sub CreateConfigurationBindings
&WriteFile("Capabilities/cctki_\U$providedcap\E.h",\$incs);
&WriteFile("Capabilities/make.\U$providedcap\E.deps",\$deps);
- # ES 2011-11-25: I don't understand these lines, so I'm
- # leaving them alone
+ # Create a list of thorns that provide a capability with
+ # a library (or library search paths)
if ($cfg->{"\U$thorn $providedcap\E LIBRARY"})
{
$linker_thorns{"$thorn"} = $thorn;
- $linker_cfg{"\U$thorn\E USES"} = $cfg->{"\U$thorn\E USES THORNS"};
+ #$linker_cfg{"\U$thorn\E USES"} = $cfg->{"\U$thorn\E USES THORNS"};
}
if ($cfg->{"\U$thorn $providedcap\E LIBRARY_DIRECTORY"})
{
$linker_thorns{"$thorn"} = $thorn;
- $linker_cfg{"\U$thorn\E USES"} = $cfg->{"\U$thorn\E USES THORNS"};
+ #$linker_cfg{"\U$thorn\E USES"} = $cfg->{"\U$thorn\E USES THORNS"};
}
}
}
@@ -197,7 +197,7 @@ sub CreateConfigurationBindings
$linkerdirs = 'LIBDIRS +=';
$linkerlibs = 'LIBS +=';
- $linker_list = &TopoSort(\%linker_thorns, \%linker_cfg);
+ $linker_list = &TopoSort(\%linker_thorns, \%linker_cfg, $cfg);
foreach $thorn (split (' ', $linker_list))
{
foreach $providedcap (split (' ', $cfg->{"\U$thorn\E PROVIDES"}))