[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin

File: [cvs.NetBSD.org] / src / bin / Makefile.inc (download)

Revision 1.13, Fri Sep 27 15:56:39 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +3 -2 lines

Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being
built is /bin or /sbin.

The reason we do this is because now all programs *except* those in
/bin and /sbin (i.e. the "special cases") match the default the compiler
uses, which is what is used for things in e.g. xsrc, pkgsrc, and other
random 3rd party programs.

#	$NetBSD: Makefile.inc,v 1.13 2002/09/27 15:56:39 thorpej Exp $
#	@(#)Makefile.inc	8.1 (Berkeley) 5/31/93

BINDIR?=	/bin

.include <bsd.own.mk>		# for MKDYNAMICROOT definition

WARNS?=		2

.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=	-static
.endif