This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] fix make after clean
On Mon, 2011-04-04 at 10:52 -0400, Christopher Faylor wrote:
> The last time I reported that I was using relative paths in the
> gcc/binutils/winsup directory I was told "Don't do that. It isn't
> supported." However, I'll move the call to Makefile.common earlier
> in Makefile.in.
>
> Thanks for the analysis.
You overcompensated just a bit too much. With a clean builddir:
In file included from /usr/src/cygwin/winsup/cygwin/gmon.c:42:0:
/usr/src/cygwin/winsup/cygwin/gmon.h:46:21: fatal error: profile.h: No
such file or directory
compilation terminated.
make[3]: *** [gmon.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/src/cygwin/winsup/cygwin/mcount.c:39:0:
/usr/src/cygwin/winsup/cygwin/gmon.h:46:21: fatal error: profile.h: No
such file or directory
compilation terminated.
make[3]: *** [mcount.o] Error 1
Patch attached.
Yaakov
2011-04-06 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* Makefile.in: Move srcdir definition before others which uses it.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v
retrieving revision 1.245
diff -u -r1.245 Makefile.in
--- Makefile.in 4 Apr 2011 15:01:43 -0000 1.245
+++ Makefile.in 7 Apr 2011 00:46:09 -0000
@@ -13,10 +13,10 @@
# Include common definitions for winsup directory
# The following assignments are "inputs" to Makefile.common
#
+srcdir:=@srcdir@
CC:=@CC@
CC_FOR_TARGET:=$(CC)
CONFIG_DIR:=$(srcdir)/config/@CONFIG_DIR@
-srcdir:=@srcdir@
include ${srcdir}/../Makefile.common
SHELL:=@SHELL@