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.
This commit is contained in:
parent
aa3f9890b8
commit
50d7346b7f
|
@ -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 @@ dummy:
|
|||
${.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
|
||||
|
|
Loading…
Reference in New Issue