diff options
| author | lukem <lukem@NetBSD.org> | 2008-08-17 07:47:48 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2008-08-17 07:47:48 +0000 |
| commit | d9803a148efcbd804244121b0d09ddfcfeba0016 (patch) | |
| tree | a8fc347533a85a3bd678d3c50ba1d5b2d6234f31 /gnu/lib | |
| parent | ff2c02da97ea674ca39446b1108549dfad40d045 (diff) | |
Create BUILDSYMLINKS for all files in G_LIB2ADD that are in ${GNUHOSTDIST},
not just .asm files.
Fixes hp700 for PR 39367, and a related problem on powerpc64 platforms.
Diffstat (limited to 'gnu/lib')
| -rw-r--r-- | gnu/lib/libgcc4/Makefile.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/lib/libgcc4/Makefile.inc b/gnu/lib/libgcc4/Makefile.inc index 236a78e1a5f..72e8971d153 100644 --- a/gnu/lib/libgcc4/Makefile.inc +++ b/gnu/lib/libgcc4/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.11 2008/08/04 06:59:47 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.12 2008/08/17 07:47:48 lukem Exp $ .if exists(${.CURDIR}/arch/${MACHINE_ARCH}.mk) && ${MKGCC} != "no" .include "${.CURDIR}/arch/${MACHINE_ARCH}.mk" @@ -54,6 +54,10 @@ CLEANFILES+= ${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} cs-tconfig.h \ CLEANFILES+= ${LIB1ASMFUNCS} .endif +.for file in ${G_LIB2ADD:M${GNUHOSTDIST}*} +BUILDSYMLINKS+= ${file} ${file:T:S/.asm$/.S/} +.endfor + # XXX .if ${MACHINE_ARCH} == "m68000" CPICFLAGS:= @@ -89,10 +93,6 @@ ${LIB1ASMFUNCS}: ${.CURDIR}/Makefile printf '#define L${.PREFIX}\n#include <${G_LIB1ASMSRC}>\n' >${.TARGET} .endif -.for asmfile in ${G_LIB2ADD:M*.asm} -BUILDSYMLINKS+= ${asmfile} ${asmfile:T:S/.asm/.S/} -.endfor - ${LIB2_EH:.c=.o}: ${_MKTARGET_COMPILE} ${COMPILE.c} -fexceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC} |
