diff options
author | grant <grant> | 2003-09-21 14:50:29 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-21 14:50:29 +0000 |
commit | eed12ab9fda7f3476e2fc404a9982af2d175473a (patch) | |
tree | 6ce51eb83dd0be595311352be3a245a4f49c5f0d /mk | |
parent | 5f7212f55aaa346d540d7a4d571ce124b46ae828 (diff) | |
download | pkgsrc-eed12ab9fda7f3476e2fc404a9982af2d175473a.tar.gz |
override AS, AR, CPP and LD unless they are set to absolute path.
avoids relying on having /usr/ccs/{bin,lib} in $PATH.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/defs.SunOS.mk | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk index 0da9ff08d09..5dbfe2d4e7e 100644 --- a/mk/defs.SunOS.mk +++ b/mk/defs.SunOS.mk @@ -1,7 +1,25 @@ -# $NetBSD: defs.SunOS.mk,v 1.66 2003/09/14 16:30:34 danw Exp $ +# $NetBSD: defs.SunOS.mk,v 1.67 2003/09/21 14:50:29 grant Exp $ # # Variable definitions for the SunOS/Solaris operating system. +# override AS, AR, CPP and LD unless they are an absolute path to +# avoid relying on /usr/ccs/{bin,lib} in the $PATH. +.if !defined(AS) || empty(AS:M/*) +AS= /usr/ccs/bin/as +.endif + +.if !defined(AR) || empty(AR:M/*) +AR= /usr/ccs/bin/ar +.endif + +.if !defined(CPP) || empty(CPP:M/*) +CPP= /usr/ccs/lib/cpp +.endif + +.if !defined(LD) || empty(LD:M/*) +LD= /usr/ccs/bin/ld +.endif + AWK?= /usr/bin/nawk BASENAME?= /usr/bin/basename CAT?= /usr/bin/cat |