From 87a97acdfecbeb3651112639d2bb7eab3372171e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Dec 2005 17:39:03 +0000 Subject: r12613: workarround a BSD make bug, where $< gets expanded to 'torture/libnet/userman.c' when $@ is 'libnet/userman.o' metze (This used to be commit 48d975cc5e4c3c2a5c6fe84e5b245c0d8529c5d1) --- source4/build/smb_build/makefile.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 4669180b56..c804032275 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -184,7 +184,7 @@ sub _prepare_std_CC_rule($$$$$$) # $comment .$src.$dst: \@echo $message \$\*.$src - \@\$(CC) `script/cflags.sh \$\@` \$(CFLAGS) $flags -c \$< -o \$\@ + \@\$(CC) `script/cflags.sh \$\@` \$(CFLAGS) $flags -c \$\*.$src -o \$\@ __EOD__ ); if ($self->{config}->{BROKEN_CC} eq "yes") { @@ -202,7 +202,7 @@ sub _prepare_hostcc_rule($) $self->output(<< "__EOD__" .c.ho: \@echo Compiling \$\*.c with host compiler - \@\$(HOSTCC) `script/cflags.sh \$\@` \$(CFLAGS) -c \$< -o \$\@ + \@\$(HOSTCC) `script/cflags.sh \$\@` \$(CFLAGS) -c \$\*.c -o \$\@ __EOD__ ); if ($self->{config}->{BROKEN_CC} eq "yes") { -- cgit