From mtmorgan at fhcrc.org  Sun Sep 25 04:13:57 2011
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Sat, 24 Sep 2011 19:13:57 -0700
Subject: [Rd] WIndows Makeconf masks user-specified zlib.h
Message-ID: <4E7E8E65.5020905@fhcrc.org>

On windows under current R-devel (r57066), R CMD INSTALL, for instance, 
invokes gcc with -I"$(R_HOME)/include" prior to any user-defined include 
paths. This means that a package cannot specify an alternative zlib.h, 
as a (reduced) version of this is in $(R_HOME)/include.

One way around this is to redefine .o rules

%.o: %.c
	$(CC) $(MY_ZFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@

Is there a better way? Can the ordering of the include search path be 
altered in src/gnuwin32/fixed/etc/Makeconf:160-161?

Martin
-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



[Rd] WIndows Makeconf masks user-specified zlib.h
Martin Morgan