summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/header.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/smb_build/header.pm b/source4/build/smb_build/header.pm
index 7a0e40fda5..34e81a3a24 100644
--- a/source4/build/smb_build/header.pm
+++ b/source4/build/smb_build/header.pm
@@ -35,8 +35,10 @@ sub _prepare_build_h($)
$key->{TYPE} ne "BINARY");
next unless defined($key->{INIT_FUNCTIONS});
+ my $name = $key->{NAME};
+ $name =~ s/-/_/g;
$DEFINE->{COMMENT} = "$key->{TYPE} $key->{NAME} INIT";
- $DEFINE->{KEY} = "STATIC_$key->{NAME}_MODULES";
+ $DEFINE->{KEY} = "STATIC_$name\_MODULES";
$DEFINE->{VAL} = "{ \\\n";
foreach (@{$key->{INIT_FUNCTIONS}}) {
$DEFINE->{VAL} .= "\t$_, \\\n";