Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc.old/lib/libgcc use the same dynamic source...
details: https://anonhg.NetBSD.org/src/rev/1fdfe019f9f6
branches: trunk
changeset: 331819:1fdfe019f9f6
user: christos <christos%NetBSD.org@localhost>
date: Mon Aug 25 16:27:25 2014 +0000
description:
use the same dynamic sources trick to make sure that the first dependency
is the c source file so that IMPSRC gets set correctly.
diffstat:
external/gpl3/gcc.old/lib/libgcc/Makefile.inc | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 707b83908f28 -r 1fdfe019f9f6 external/gpl3/gcc.old/lib/libgcc/Makefile.inc
--- a/external/gpl3/gcc.old/lib/libgcc/Makefile.inc Mon Aug 25 14:58:48 2014 +0000
+++ b/external/gpl3/gcc.old/lib/libgcc/Makefile.inc Mon Aug 25 16:27:25 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2014/03/21 20:54:13 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2014/08/25 16:27:25 christos Exp $
.if ${MKGCC} != "no"
LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
@@ -128,19 +128,22 @@
printf '#define L${.PREFIX}\n#include <${G_LIB1ASMSRC}>\n' >${.TARGET}
.endif
-${LIB2_EH:.c=.o}:
+${LIB2_EH:.c=.o}: ${.PREFIX}.c
${_MKTARGET_COMPILE}
${COMPILE.c} -fexceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
-${LIB2_EH:.c=.pico}:
+# Use dynamic sources to arrange for the C file to be the first dependency
+# so ${.IMPSRC} will work.
+
+${LIB2_EH:.c=.pico}: ${.PREFIX}.c
${_MKTARGET_COMPILE}
${COMPILE.c} ${CPICFLAGS} -fexceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
-${G_LIB2_DIVMOD_FUNCS:=.o}:
+${G_LIB2_DIVMOD_FUNCS:=.o}: ${.PREFIX}.c
${_MKTARGET_COMPILE}
${COMPILE.c} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
-${G_LIB2_DIVMOD_FUNCS:=.pico}:
+${G_LIB2_DIVMOD_FUNCS:=.pico}: ${.PREFIX}.c
${_MKTARGET_COMPILE}
${COMPILE.c} ${CPICFLAGS} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
Home |
Main Index |
Thread Index |
Old Index