Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/gmp/lib/libgmp/arch/sparc XXX: like ppc, buil...
details: https://anonhg.NetBSD.org/src/rev/4d2ddd0b00e5
branches: trunk
changeset: 767077:4d2ddd0b00e5
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 08 09:21:17 2011 +0000
description:
XXX: like ppc, build sparc gmp files with -DPIC for now.
now /usr/bin/cc in a gcc 4.5.3 world works on a sparc.
diffstat:
external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 60f078d59a44 -r 4d2ddd0b00e5 external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
--- a/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc Fri Jul 08 06:38:03 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc Fri Jul 08 09:21:17 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2011/07/08 09:21:17 mrg Exp $
SRCS+= \
random.c \
@@ -170,9 +170,14 @@
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
+BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
.for _build _src in ${ASM_SRCS_LIST}
${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
- ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
+ ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+ ${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+ -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
SRCS+= ${_build:R}.s
CLEANFILES+= ${_build:R}.s
Home |
Main Index |
Thread Index |
Old Index