From a46e12d0e07e1630f8ef15aff0f97cb2f1f4c273 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 7 Sep 2006 10:02:32 +0000 Subject: r18213: don't list LIBREPLACE depdendecies explicit and always at it as first private dependencies metze (This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f) --- source4/build/smb_build/input.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/build') 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"); } } -- cgit