=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/share/mk/bsd.own.mk,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- src/share/mk/bsd.own.mk 2001/09/25 10:26:40 1.57 +++ src/share/mk/bsd.own.mk 2001/09/25 13:04:30 1.58 @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.own.mk,v 1.57 2001/09/25 10:26:40 espie Exp $ +# $OpenBSD: bsd.own.mk,v 1.58 2001/09/25 13:04:30 drahn Exp $ # $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $ # Host-specific overrides @@ -111,6 +111,14 @@ .if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "sparc64") || \ (${MACHINE_ARCH} == "hppa") || (${MACHINE_ARCH} == "m88k") NOPIC= +.endif + +#pic relocation flags. +.if (${MACHINE_ARCH} == "sparc64") +PICFLAG=-fPIC +ASPICFLAG=-KPIC +.else +ASPICFLAG=-k .endif # don't try to generate PROFILED versions of libraries on machines