summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/main.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-03 22:26:02 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-03 22:26:02 +0200
commit1a1c30405198d82746851f5244be901cf5d1ae6b (patch)
tree13212a3ba3bc7a9283d58267acd549c53708f1f1 /source4/build/smb_build/main.pl
parenta2618d05f91b0ef5cd0216d088025eb4a61d4de5 (diff)
downloadsamba-1a1c30405198d82746851f5244be901cf5d1ae6b.tar.gz
samba-1a1c30405198d82746851f5244be901cf5d1ae6b.tar.bz2
samba-1a1c30405198d82746851f5244be901cf5d1ae6b.zip
Allow overriding shared library policy using environment variable.
(This used to be commit d5c61f470d7aa6dd0e5a22e8718d53a69cbbc239)
Diffstat (limited to 'source4/build/smb_build/main.pl')
-rw-r--r--source4/build/smb_build/main.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/build/smb_build/main.pl b/source4/build/smb_build/main.pl
index f8a0cb004f..3c84a91a59 100644
--- a/source4/build/smb_build/main.pl
+++ b/source4/build/smb_build/main.pl
@@ -31,7 +31,9 @@ my $mkfile = smb_build::config_mk::run_config_mk($INPUT, $config::config{srcdir}
my $subsys_output_type = ["MERGED_OBJ"];
my $library_output_type;
-if ($config::config{USESHARED} eq "true") {
+my $useshared = (defined($ENV{USESHARED})?$ENV{USESHARED}:$config::config{USESHARED});
+
+if ($useshared eq "true") {
$library_output_type = ["SHARED_LIBRARY", "MERGED_OBJ"];
} else {
$library_output_type = ["MERGED_OBJ"];
@@ -40,7 +42,7 @@ if ($config::config{USESHARED} eq "true") {
}
my $module_output_type;
-if ($config::config{USESHARED} eq "true") {
+if ($useshared eq "true") {
$module_output_type = ["SHARED_LIBRARY"];
} else {
$module_output_type = ["MERGED_OBJ"];