pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Only create wrapper scripts for compilers that we r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b141c0d448d
branches:  trunk
changeset: 467524:2b141c0d448d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Feb 02 10:26:42 2004 +0000

description:
Only create wrapper scripts for compilers that we require support for as
noted in USE_LANGUAGES.

diffstat:

 mk/buildlink2/bsd.buildlink2.mk |  14 +++++++++++---
 mk/buildlink3/bsd.buildlink3.mk |  14 +++++++++++---
 2 files changed, 22 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r 3bc9e906b7a4 -r 2b141c0d448d mk/buildlink2/bsd.buildlink2.mk
--- a/mk/buildlink2/bsd.buildlink2.mk   Mon Feb 02 10:08:43 2004 +0000
+++ b/mk/buildlink2/bsd.buildlink2.mk   Mon Feb 02 10:26:42 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.107 2004/02/01 12:04:31 grant Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.108 2004/02/02 10:26:42 jlam Exp $
 #
 # An example package buildlink2.mk file:
 #
@@ -465,8 +465,16 @@
 # ALIASES.CC, ALIASES.LD, etc. are the other names by which each wrapper
 #      may be invoked.
 #
-_BLNK_WRAPPEES=                AS CC CXX CPP LD
-.if defined(USE_FORTRAN)
+_BLNK_WRAPPEES+=       AS
+.if !empty(USE_LANGUAGES:Mc)
+_BLNK_WRAPPEES+=       CC
+_BLNK_WRAPPEES+=       CPP
+.endif
+.if !empty(USE_LANGUAGES:Mc++)
+_BLNK_WRAPPEES+=       CXX
+.endif
+_BLNK_WRAPPEES+=       LD
+.if !empty(USE_LANGUAGES:Mfortran) || defined(USE_FORTRAN)
 _BLNK_WRAPPEES+=       FC
 .endif
 .if defined(USE_LIBTOOL)
diff -r 3bc9e906b7a4 -r 2b141c0d448d mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Mon Feb 02 10:08:43 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Mon Feb 02 10:26:42 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.67 2004/02/01 12:04:13 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.68 2004/02/02 10:26:42 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -933,8 +933,16 @@
 # ALIASES.CC, ALIASES.LD, etc. are the other names by which each wrapper
 #       may be invoked.
 #
-_BLNK_WRAPPEES=                AS CC CXX CPP LD
-.if defined(USE_FORTRAN)
+_BLNK_WRAPPEES+=       AS
+.if !empty(USE_LANGUAGES:Mc)
+_BLNK_WRAPPEES+=       CC
+_BLNK_WRAPPEES+=       CPP
+.endif
+.if !empty(USE_LANGUAGES:Mc++)
+_BLNK_WRAPPEES+=       CXX
+.endif
+_BLNK_WRAPPEES+=       LD
+.if !empty(USE_LANGUAGES:Mfortran) || defined(USE_FORTRAN)
 _BLNK_WRAPPEES+=       FC
 .endif
 .if defined(USE_LIBTOOL)



Home | Main Index | Thread Index | Old Index