Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Define the MKPICLIB default for aarch64 and powerpc...



details:   https://anonhg.NetBSD.org/src/rev/62d8bd976b09
branches:  trunk
changeset: 348884:62d8bd976b09
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Nov 13 22:13:55 2016 +0000

description:
Define the MKPICLIB default for aarch64 and powerpc64 only for native
builds, not inside src/compat.

diffstat:

 share/mk/bsd.own.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 0b83f3d0a45f -r 62d8bd976b09 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Nov 13 15:25:01 2016 +0000
+++ b/share/mk/bsd.own.mk       Sun Nov 13 22:13:55 2016 +0000
@@ -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 @@
 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,



Home | Main Index | Thread Index | Old Index