From 431a2809a8044bfcc58e0ae544edaf5126ad083a Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Tue, 25 Sep 2001 13:04:31 +0000 Subject: Add an ASPICFLAG variable to bsd.own.mk which a platform use to pass flags to 'as' to make it compile pic. add defaults for sparc64 which needs picflags set to -fPIC and ASPICFLAGS to -KPIC. Also simplifies the systemcall generation for sparc64 PIC mode. ok epsie@. --- lib/libc/sys/Makefile.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/libc/sys/Makefile.inc') diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 8424e1ae6ee..a5094ee43a2 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.46 2001/09/20 20:52:09 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.47 2001/09/25 13:04:30 drahn Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -96,7 +96,8 @@ ${PASM}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h ${SASM}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \ - ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET} + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | \ + ${AS} ${ASPICFLAG} -o ${.TARGET} .else ${SASM}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} @@ -129,7 +130,8 @@ ${PPSEUDO}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h ${SPSEUDO}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \ - ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET} + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | \ + ${AS} ${ASPICFLAG} -o ${.TARGET} .else ${SPSEUDO}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} @@ -155,7 +157,8 @@ ${PPSEUDO_NOERR}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/sysc ${SPSEUDO_NOERR}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} @printf '#include "SYS.h"\nPSEUDO_NOERROR(${.PREFIX},${.PREFIX:S/_//})\n' | \ - ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET} + ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | \ + ${AS} ${ASPICFLAG} -o ${.TARGET} .else ${SPSEUDO_NOERR}: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @echo creating ${.TARGET} -- cgit v1.2.3