From a41ac85091fbec145d7bcb51bb0239d81b452313 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 13 Apr 2006 03:09:14 +0000 Subject: [PATCH] r15061: Use $(PERL) to run cflags.pl as actual perl binary might not be in /usr/bin (This used to be commit 7d5a91a667418b18bde9399ffc4c9852c422362a) --- source4/main.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source4/main.mk b/source4/main.mk index 85c3ffb82ce..6eba282be0c 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -311,15 +311,15 @@ unused_macros: .c.ho: @echo "Compiling $< with host compiler" - @$(HOSTCC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ + @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ .c.d: @echo "Generating dependencies for $<" - @$(CC) -M -MG -MP -MT $(<:.c=.o) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@ + @$(CC) -M -MG -MP -MT $(<:.c=.o) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@ .c.hd: @echo "Generating dependencies for $<" - @$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@ + @$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@ include/includes.d: include/includes.h @echo "Generating dependencies for $<" @@ -328,14 +328,14 @@ include/includes.d: include/includes.h .c.o: @if test -n "$(CC_CHECKER)"; then \ echo "Checking $< with '$(CC_CHECKER)'"; \ - $(CC_CHECKER) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \ + $(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \ fi @echo "Compiling $<" - @$(CC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ + @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ .h.h.gch: @echo "Precompiling $<" - @$(CC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ + @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ .y.c: @echo "Building $< with $(YACC)" -- 2.11.4.GIT