diff options
author | lloyd <[email protected]> | 2008-09-11 16:14:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-11 16:14:59 +0000 |
commit | f3875c222019f4dd40b656fbeec521c463b5d324 (patch) | |
tree | 795efe6a063a564918c6b0c217d3600fd1ce85e7 /configure.pl | |
parent | 357bbf6c41e9c5c14711364b052dc2698d993624 (diff) |
Hijack the <supports_shared> tag in the os configs. It had been for
the CPU type, however currently every OS has it set to 'all'. And since
instead it seems I need to specialize on compiler, I've changed
supports_shared to set that, and also changed the Windows config so it
only attempts a DLL build with Visual Studio.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.pl b/configure.pl index 15825d4a1..78a98339c 100755 --- a/configure.pl +++ b/configure.pl @@ -1661,7 +1661,8 @@ sub generate_makefile { if($$config{'shared'} eq 'yes' and (in_array('all', $OPERATING_SYSTEM{$os}{'supports_shared'}) or - in_array($arch, $OPERATING_SYSTEM{$os}{'supports_shared'}))) { + in_array($$config{'compiler'}, + $OPERATING_SYSTEM{$os}{'supports_shared'}))) { $$config{'shared_flags'} = &$empty_if_nil($ccinfo{'shared_flags'}); $$config{'so_link'} = &$empty_if_nil($ccinfo{'so_link_flags'}{$os}); @@ -1679,6 +1680,9 @@ sub generate_makefile { } } else { + autoconfig("No shared library generated with " . + $$config{'compiler'} . " on " . $$config{'os'}); + $$config{'shared'} = 'no'; $$config{'shared_flags'} = ''; $$config{'so_link'} = ''; |