summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-05-24 07:27:11 +0000
committerobache <obache@pkgsrc.org>2008-05-24 07:27:11 +0000
commit442d2697d6229f56695ede790e99833b1280bc11 (patch)
tree875b6b7fad9d5a722bd49912555ea10e2335edf3 /mk
parent4d6db4497dc53c442994fc31e235e8715cc46b11 (diff)
downloadpkgsrc-442d2697d6229f56695ede790e99833b1280bc11.tar.gz
Suppress automatical addition c to USE_LANGUAGES (ref. PR 34079)
if F2C does not really required. Fixes problem mentioned in PR 38626.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/f2c.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/compiler/f2c.mk b/mk/compiler/f2c.mk
index 01288e254c5..1d821d94a32 100644
--- a/mk/compiler/f2c.mk
+++ b/mk/compiler/f2c.mk
@@ -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 @@ COMPILER_F2C_MK= defined
.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 @@ _USE_F2C= YES
.endif
.if !empty(_USE_F2C:M[yY][eE][sS])
+USE_LANGUAGES+= c
+
EVAL_PREFIX+= _F2CBASE=f2c
_F2CBASE_DEFAULT= ${LOCALBASE}