diff options
Diffstat (limited to 'source4/build/smb_build/input.pm')
-rw-r--r-- | source4/build/smb_build/input.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index a8f5485a35..227b47c0c7 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -41,11 +41,15 @@ sub add_libreplace($) return if ($n eq "LIBREPLACE"); return if ($n eq "LIBREPLACE_HOSTCC"); } + foreach my $n (@{$part->{PUBLIC_DEPENDENCIES}}) { + return if ($n eq "LIBREPLACE"); + return if ($n eq "LIBREPLACE_HOSTCC"); + } if (defined($part->{USE_HOSTCC}) && $part->{USE_HOSTCC} eq "YES") { - push (@{$part->{PRIVATE_DEPENDENCIES}}, "LIBREPLACE_HOSTCC"); + unshift (@{$part->{PRIVATE_DEPENDENCIES}}, "LIBREPLACE_HOSTCC"); } else { - push (@{$part->{PRIVATE_DEPENDENCIES}}, "LIBREPLACE"); + unshift (@{$part->{PRIVATE_DEPENDENCIES}}, "LIBREPLACE"); } } |