pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Suppress automatical addition c to USE_LAN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9425cacbe05e
branches:  trunk
changeset: 542644:9425cacbe05e
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat May 24 07:27:11 2008 +0000

description:
Suppress automatical addition c to USE_LANGUAGES (ref. PR 34079)
if F2C does not really required.

Fixes problem mentioned in PR 38626.

diffstat:

 mk/compiler/f2c.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 05a48f9d4b19 -r 9425cacbe05e mk/compiler/f2c.mk
--- a/mk/compiler/f2c.mk        Sat May 24 07:24:59 2008 +0000
+++ b/mk/compiler/f2c.mk        Sat May 24 07:27:11 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: f2c.mk,v 1.10 2008/02/07 20:59:05 rillig Exp $
+# $NetBSD: f2c.mk,v 1.11 2008/05/24 07:27:11 obache Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -40,8 +40,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-USE_LANGUAGES+=                c
-
 .if !empty(PKGPATH:Mlang/f2c) || !empty(PKGPATH:Mdevel/patch) || \
     !empty(PKGPATH:Mdevel/libtool-base)
 IGNORE_F2C=    yes
@@ -70,6 +68,8 @@
 .endif
 
 .if !empty(_USE_F2C:M[yY][eE][sS])
+USE_LANGUAGES+=                c
+
 EVAL_PREFIX+=          _F2CBASE=f2c
 _F2CBASE_DEFAULT=      ${LOCALBASE}
 



Home | Main Index | Thread Index | Old Index