summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/makefile.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-30 17:39:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:04 -0500
commit87a97acdfecbeb3651112639d2bb7eab3372171e (patch)
treeb73d21ef1efe5c5d65465d79fdeee2cc196258cd /source4/build/smb_build/makefile.pm
parentba76f23df94f53fd27ee3daa376e0995d74d5311 (diff)
downloadsamba-87a97acdfecbeb3651112639d2bb7eab3372171e.tar.gz
samba-87a97acdfecbeb3651112639d2bb7eab3372171e.tar.bz2
samba-87a97acdfecbeb3651112639d2bb7eab3372171e.zip
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)
Diffstat (limited to 'source4/build/smb_build/makefile.pm')
-rw-r--r--source4/build/smb_build/makefile.pm4
1 files changed, 2 insertions, 2 deletions
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") {