diff options
-rw-r--r-- | source4/build/smb_build/env.pm | 4 | ||||
-rw-r--r-- | source4/build/smb_build/makefile.pm | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm index eb798f5ad0..f468f51de1 100644 --- a/source4/build/smb_build/env.pm +++ b/source4/build/smb_build/env.pm @@ -66,8 +66,8 @@ sub PkgConfig($$$$$$$$$$$$) mkpath(dirname($path),0,0755); open(OUT, ">$path") or die("Can't open $path: $!"); - foreach (keys %$dirs) { - print OUT "$_=" . $dirs->{$_} . "\n"; + foreach (@$dirs) { + print OUT "$_\n"; } if ($hasmodules) { print OUT "modulesdir=$self->{config}->{modulesdir}/$name\n" ; diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index b86dbb591d..b639612fed 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -458,12 +458,12 @@ sub PkgConfig($$$) defined($ctx->{INIT_FUNCTIONS}), $pubs, $privs, - { - "prefix" => $self->{config}->{prefix}, - "exec_prefix" => $self->{config}->{exec_prefix}, - "libdir" => $self->{config}->{libdir}, - "includedir" => $self->{config}->{includedir} - } + [ + "prefix=$self->{config}->{prefix}", + "exec_prefix=$self->{config}->{exec_prefix}", + "libdir=$self->{config}->{libdir}", + "includedir=$self->{config}->{includedir}" + ] ); smb_build::env::PkgConfig($self, "bin/pkgconfig/$link_name-uninstalled.pc", @@ -476,10 +476,10 @@ sub PkgConfig($$$) defined($ctx->{INIT_FUNCTIONS}), $pubs, $privs, - { - "prefix" => "bin/", - "includedir" => "$ctx->{BASEDIR}" - } + [ + "prefix=bin/", + "includedir=$ctx->{BASEDIR}" + ] ); } |