[BACK]Return to exec.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / compat

File: [cvs.NetBSD.org] / src / compat / exec.mk (download)

Revision 1.6, Mon May 31 02:10:37 2021 UTC (4 months, 3 weeks ago) by simonb
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, HEAD
Changes since 1.5: +1 -3 lines

MIPS n64 dynamic binaries have worked for a while now, remove -static
for these.

#	$NetBSD: exec.mk,v 1.6 2021/05/31 02:10:37 simonb Exp $

# this makefile fragment can be included to modify the default
# ABI a program is compiled with.  this is designed to be used
# by tools that must match the kernel image like savecore(8)
# and kvm(3) using tools.

# currently this file is used by these Makefiles:
#
#   external/bsd/ipf/Makefile.inc 
#   sbin/savecore/Makefile
#   usr.bin/fstat/Makefile
#   usr.bin/netstat/Makefile
#   usr.bin/pmap/Makefile
#   usr.bin/systat/Makefile
#   usr.bin/vmstat/Makefile
#   usr.sbin/crash/Makefile
#   usr.sbin/kgmon/Makefile
#   usr.sbin/pstat/Makefile
#   usr.sbin/trpt/Makefile
#
# of these, savecore, crash and kgmon are the only ones that
# can be considered "not a bug".  all the *stat tools should
# be converted to use sysctl(3) on the running kernel, and
# anyone who needs kvm-access on crash dumps can build their
# own 64 bit version as necessary.  ipfilter doesn't use
# 64-bit alignment/size safe structures.
# 

# mips64 defaults to 32 bit userland, but with a 64 bit kernel
# most kvm-using tools are happier with 64 bit.

.if ${MACHINE_ARCH} == "mips64el" || (${MACHINE_ARCH} == "mips64eb" && ${MACHINE} != "sgimips")

# XXX -pie makes n64 crash
NOPIE=1

. include <bsd.own.mk>

. if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG)
.  include "${.PARSEDIR}/mips64/64/bsd.64.mk"
. endif # ${MKCOMPAT} != "no"

.endif # mips64