summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-26 11:30:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:59 -0500
commitf5bc4a72c56a8d74bfa0f334890fac9b3ea3f37e (patch)
treef42d4992f7aa4b9fb029181fd93cb80eac8ed9d4 /source4/build/smb_build
parent91631d9b90c7422debb59b45b13bee9b6caba832 (diff)
downloadsamba-f5bc4a72c56a8d74bfa0f334890fac9b3ea3f37e.tar.gz
samba-f5bc4a72c56a8d74bfa0f334890fac9b3ea3f37e.tar.bz2
samba-f5bc4a72c56a8d74bfa0f334890fac9b3ea3f37e.zip
r15270: Rename EXTRA_CFLAGS to CFLAGS - initial work on getting DSO's working again.
(This used to be commit 33e4b92c46f272478b3c9e433f910dbbaab52af8)
Diffstat (limited to 'source4/build/smb_build')
-rwxr-xr-xsource4/build/smb_build/cflags.pm6
-rw-r--r--source4/build/smb_build/config_mk.pm10
-rw-r--r--source4/build/smb_build/input.pm4
-rw-r--r--source4/build/smb_build/output.pm10
4 files changed, 15 insertions, 15 deletions
diff --git a/source4/build/smb_build/cflags.pm b/source4/build/smb_build/cflags.pm
index 299cbab025..6dfe4fe94e 100755
--- a/source4/build/smb_build/cflags.pm
+++ b/source4/build/smb_build/cflags.pm
@@ -14,15 +14,15 @@ sub create_cflags($$)
foreach my $key (values %{$CTX}) {
next unless defined ($key->{OBJ_LIST});
- next unless defined ($key->{EXTRA_CFLAGS});
- next if ($key->{EXTRA_CFLAGS} eq "");
+ next unless defined ($key->{CFLAGS});
+ next if ($key->{CFLAGS} eq "");
foreach (@{$key->{OBJ_LIST}}) {
my $ofile = $_;
my $dfile = $_;
$dfile =~ s/\.o$/.d/;
$dfile =~ s/\.ho$/.d/;
- print CFLAGS_TXT "$ofile $dfile: CFLAGS+=$key->{EXTRA_CFLAGS}\n";
+ print CFLAGS_TXT "$ofile $dfile: CFLAGS+=$key->{CFLAGS}\n";
}
}
close(CFLAGS_TXT);
diff --git a/source4/build/smb_build/config_mk.pm b/source4/build/smb_build/config_mk.pm
index 6dfd105c25..7250735b53 100644
--- a/source4/build/smb_build/config_mk.pm
+++ b/source4/build/smb_build/config_mk.pm
@@ -15,7 +15,7 @@ use strict;
my $section_types = {
"EXT_LIB" => {
"LIBS" => "list",
- "EXTRA_CFLAGS" => "string",
+ "CFLAGS" => "string",
"CPPFLAGS" => "list",
"LDFLAGS" => "list",
},
@@ -34,7 +34,7 @@ my $section_types = {
"PUBLIC_HEADERS" => "list",
- "EXTRA_CFLAGS" => "string",
+ "CFLAGS" => "string",
"STANDARD_VISIBILITY" => "string"
},
"MODULE" => {
@@ -55,7 +55,7 @@ my $section_types = {
"MANPAGE" => "string",
"PRIVATE_PROTO_HEADER" => "string",
- "EXTRA_CFLAGS" => "string"
+ "CFLAGS" => "string"
},
"BINARY" => {
"OBJ_FILES" => "list",
@@ -70,7 +70,7 @@ my $section_types = {
"PUBLIC_PROTO_HEADER" => "string",
"PUBLIC_HEADERS" => "list",
- "EXTRA_CFLAGS" => "string",
+ "CFLAGS" => "string",
"STANDARD_VISIBILITY" => "string"
},
"LIBRARY" => {
@@ -96,7 +96,7 @@ my $section_types = {
"PUBLIC_PROTO_HEADER" => "string",
"PRIVATE_PROTO_HEADER" => "string",
- "EXTRA_CFLAGS" => "string",
+ "CFLAGS" => "string",
"STANDARD_VISIBILITY" => "string"
}
};
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index 697f706a0c..488ac5c6ec 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -155,8 +155,8 @@ sub check($$$$$)
}
}
- unless (defined($part->{EXTRA_CFLAGS})) {
- $part->{EXTRA_CFLAGS} = "";
+ unless (defined($part->{CFLAGS})) {
+ $part->{CFLAGS} = "";
}
unless (defined($part->{PUBLIC_HEADERS})) {
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index d344b8ef01..5c54feee1b 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -151,8 +151,8 @@ sub create_output($$)
foreach my $elem (values %{$part->{UNIQUE_DEPENDENCIES}}) {
next if $elem == $part;
- push(@{$part->{CFLAGS}}, @{$elem->{CPPFLAGS}}) if defined(@{$elem->{CPPFLAGS}});
- push(@{$part->{CFLAGS}}, $elem->{EXTRA_CFLAGS}) if defined($elem->{EXTRA_CFLAGS});
+ push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if defined(@{$elem->{CPPFLAGS}});
+ push(@{$part->{PUBLIC_CFLAGS}}, $elem->{CFLAGS}) if defined($elem->{CFLAGS});
push(@{$part->{LINK_LIST}}, $elem->{OUTPUT}) if defined($elem->{OUTPUT});
push(@{$part->{LINK_FLAGS}}, @{$elem->{LIBS}}) if defined($elem->{LIBS});
push(@{$part->{LINK_FLAGS}},@{$elem->{LDFLAGS}}) if defined($elem->{LDFLAGS});
@@ -161,11 +161,11 @@ sub create_output($$)
}
foreach $part (values %{$depend}) {
- $part->{EXTRA_CFLAGS} .= " " . join(' ', @{$part->{CFLAGS}}) if defined($part->{CFLAGS});
- $part->{EXTRA_CFLAGS} .= " " . join(' ', @{$part->{CPPFLAGS}}) if defined($part->{CPPFLAGS});
+ $part->{CFLAGS} .= " " . join(' ', @{$part->{PUBLIC_CFLAGS}}) if defined($part->{PUBLIC_CFLAGS});
+ $part->{CFLAGS} .= " " . join(' ', @{$part->{CPPFLAGS}}) if defined($part->{CPPFLAGS});
if (($part->{STANDARD_VISIBILITY} ne "default") and
($config->{visibility_attribute} eq "yes")) {
- $part->{EXTRA_CFLAGS} .= " -fvisibility=$part->{STANDARD_VISIBILITY}";
+ $part->{CFLAGS} .= " -fvisibility=$part->{STANDARD_VISIBILITY}";
}
}