pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk override AS, AR, CPP and LD unless they are set to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e60e6cfac150
branches:  trunk
changeset: 461782:e60e6cfac150
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Sep 21 14:50:29 2003 +0000

description:
override AS, AR, CPP and LD unless they are set to absolute path.
avoids relying on having /usr/ccs/{bin,lib} in $PATH.

diffstat:

 mk/defs.SunOS.mk |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 5739906938c8 -r e60e6cfac150 mk/defs.SunOS.mk
--- a/mk/defs.SunOS.mk  Sun Sep 21 14:17:26 2003 +0000
+++ b/mk/defs.SunOS.mk  Sun Sep 21 14:50:29 2003 +0000
@@ -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



Home | Main Index | Thread Index | Old Index