Skip to content

Commit 40818aa

Browse files
author
smeyer
committed
use a portable target rule
git-svn-id: https://svn.r-project.org/R/trunk@89149 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 107bf52 commit 40818aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/unix/Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ R: Makedeps
5454
## https://community.intel.com/t5/Intel-C-Compiler/Troubles-with-getrusage-when-using-icx/m-p/1509374#M41116
5555
INTEL_ICX_FIX = @INTEL_ICX_FIX@
5656
sys-unix.o: $(srcdir)/sys-unix.c
57-
$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(INTEL_ICX_FIX) -c $< -o $@
57+
$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(INTEL_ICX_FIX) -c $(srcdir)/sys-unix.c -o $@
58+
## note $< is unspecified for target rules: when rebuilding with pdpmake
59+
## it could evaluate to updated prerequisites such as ../include/Defn.h
5860

59-
## is this portable?
6061
../include/Rversion.h:
6162
(cd ../include; $(MAKE) $(@F))
6263

0 commit comments

Comments
 (0)