Module Name: src
Committed By: joerg
Date: Sun Nov 13 22:13:55 UTC 2016
Modified Files:
src/share/mk: bsd.own.mk
Log Message:
Define the MKPICLIB default for aarch64 and powerpc64 only for native
builds, not inside src/compat.
To generate a diff of this commit:
cvs rdiff -u -r1.985 -r1.986 src/share/mk/bsd.own.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.985 src/share/mk/bsd.own.mk:1.986
--- src/share/mk/bsd.own.mk:1.985 Tue Nov 1 14:21:30 2016
+++ src/share/mk/bsd.own.mk Sun Nov 13 22:13:55 2016
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.985 2016/11/01 14:21:30 skrll Exp $
+# $NetBSD: bsd.own.mk,v 1.986 2016/11/13 22:13:55 joerg Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -824,9 +824,11 @@ MKGDB.ia64= no
MKPICLIB:= no
.endif
-# PowerPC64 and AArch64 ABI's are PIC
-MKPICLIB.powerpc64= no
+.if !defined(COMMON_MACHINE_ARCH)
+# Native AArch64 and PowerPC64 ABIs are PIC.
+MKPICLIB.powerpc64:= no
#MKPICLIB.aarch64= no
+.endif
#
# On VAX using ELF, all objects are PIC, not just shared libraries,