This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Building eCos
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Re: Building eCos
- From: Bart Veer <bartv at redhat dot com>
- Date: Fri, 3 Mar 2000 14:49:47 GMT
- References: <200003011701.JAA18830@cygnus.com>
- Reply-to: bartv at redhat dot com
>>>>> "Robert" == Robert Swindells <swindellsr@genrad.co.uk> writes:
Robert> Is anyone building eCos under UNIX ?
Robert> If so, is there any documentation that describes how to do
Robert> this.
Robert> If I try to use pkgconf.tcl to configure a build tree I
Robert> just get:
Robert> % gmake
Robert> makefile:9: pkgconf/pkgconf.mak: No such file or directory
Robert> gmake: *** No rule to make target `pkgconf/pkgconf.mak'. Stop.
Robert and I have now managed to track down the problem. The eCos
build system was assuming the GNU version of the install utility. On
some versions of Unix including FreeBSD there is a different version
of install, which by default deletes the original rather than just
copying it. During the first run the make system will install various
files from the build tree to the install tree, leaving the build tree
unusable for subsequent runs.
The following patch to pkgconf/makevars should sort out the problem,
and should still work with the GNU version of install (it accepts and
ignores the -c flag).
Bart Veer // eCos net maintainer
Index: makevars
===================================================================
RCS file: /cvs/ecc/ecc/pkgconf/makevars,v
retrieving revision 1.15
diff -u -5 -u -r1.15 makevars
--- makevars 2000/02/02 19:13:29 1.15
+++ makevars 2000/03/03 14:47:47
@@ -97,11 +97,11 @@
ifeq ($(OBJCOPY),)
OBJCOPY := $(PKGCONF_OBJCOPY)
#OBJCOPY :=
endif
ifeq ($(CP),)
-CP := install -m 0644
+CP := install -c -m 0644
#CP :=
endif
ifeq ($(RM),)
RM := rm -f
#RM :=