Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 00:51:23 -0700
From:      "David O'Brien" <obrien@freebsd.org>
To:        sparc64@freebsd.org
Subject:   patch for src/gnu/lib/libgcc
Message-ID:  <20020518005123.A21176@dragon.nuxi.com>

next in thread | raw e-mail | index | archive | help
I need to make sure this will not break IA-64, but this fixes the Sparc64
build.


Index: Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/lib/libgcc/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- Makefile	17 May 2002 08:59:13 -0000	1.43
+++ Makefile	18 May 2002 07:43:06 -0000
@@ -99,7 +99,7 @@
 
 .if ${TARGET_ARCH} == "arm"
 #	from config/arm/t-strongarm-elf
-LIB1ASMSRC = arm/lib1funcs.asm
+LIB1ASMSRC = lib1funcs.asm
 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func
 # We want fine grained libraries, so use the new code to build the
 # floating point emulation libraries.
@@ -108,7 +108,7 @@
 
 .if ${TARGET_ARCH} == "ia64"
 #	from config/ia64/t-ia64
-LIB1ASMSRC    = ia64/lib1funcs.asm
+LIB1ASMSRC    = lib1funcs.asm
 LIB1ASMFUNCS  = __divtf3 __divdf3 __divsf3 \
 	__divdi3 __moddi3 __udivdi3 __umoddi3 \
 	__divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \
@@ -213,24 +213,29 @@
 .endif
 
 .if defined(LIB1ASMSRC)
-${ASM_T}: ${LIB1ASMSRC}
-	${XCC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${LIB1ASMSRC}
+.for _lib1asmsrc in ${LIB1ASMSRC}
+${ASM_T}: ${_lib1asmsrc}
+	${XCC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} \
+	    -o ${.TARGET} ${.ALLSRC:N*.h}
 	@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
 	@mv ${.TARGET}.tmp ${.TARGET}
 
 .if !defined(NOPIC)
-${ASM_S}: ${LIB1ASMSRC}
-	${XCC} -x assembler-with-cpp -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${LIB1ASMSRC}
+${ASM_S}: ${_lib1asmsrc}
+	${XCC} -x assembler-with-cpp -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} \
+	    -o ${.TARGET} ${.ALLSRC:N*.h}
 	@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
 	@mv ${.TARGET}.tmp ${.TARGET}
 .endif
 
 .if !defined(NOPROFILE)
-${ASM_P}: ${LIB1ASMSRC}
-	${XCC} -x assembler-with-cpp -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${TARGET_ARCH}/${LIB1ASMSRC}
+${ASM_P}: ${_lib1asmsrc}
+	${XCC} -x assembler-with-cpp -p -c ${CFLAGS} -DL${.PREFIX} \
+	    -o ${.TARGET} ${.ALLSRC:N*.h}
 	@${LD} -o ${.TARGET}.tmp -X -r ${.TARGET}
 	@mv ${.TARGET}.tmp ${.TARGET}
 .endif
+.endfor
 .endif
 
 .include <bsd.lib.mk>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020518005123.A21176>