This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[RFA] Fix a v850-elf build error
- From: Kevin Buettner <kevinb at redhat dot com>
- To: newlib at sourceware dot org
- Date: Wed, 8 Sep 2010 17:03:25 -0700
- Subject: [RFA] Fix a v850-elf build error
I'm seeing the following build error for --target=v850-elf:
...
make[9]: Entering directory `/mesquite2/sourceware-v850/newlib/v850-elf/v850-elf/v850/newlib/libc/sys/sysnecv850'
make[9]: *** No rule to make target `lib.c', needed by `lib_a-lib.o'. Stop.
make[9]: Leaving directory `/mesquite2/sourceware-v850/newlib/v850-elf/v850-elf/v850/newlib/libc/sys/sysnecv850'
The patch below fixes this problem. It prevents automake from generating
a dependency on a non-existent source file.
Okay?
* Makefile.am (lib_a_SOURCES): Provide an empty definition.
* Makefile.in: Regenerate.
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/sysnecv850/Makefile.am,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile.am
--- Makefile.am 23 Jul 2010 18:11:27 -0000 1.6
+++ Makefile.am 8 Sep 2010 22:54:49 -0000
@@ -28,6 +28,7 @@ EXTRA_lib_a_SOURCES = \
kill.c lseek.c open.c pipe.c read.c link.c \
sbrk.c stat.c time.c trap.S unlink.c utime.c wait.c write.c \
times.c gettime.c
+lib_a_SOURCES =
lib_a_DEPENDENCIES = $(extra_objs)
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
lib_a_CFLAGS = $(AM_CFLAGS)