diff options
author | obache <obache@pkgsrc.org> | 2013-05-10 09:07:37 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-05-10 09:07:37 +0000 |
commit | 4af3a83b6920cad9f90afe837b5fadb1461d1ad1 (patch) | |
tree | 7d1298a021f79892cb6a398161e85d2724ec17d8 | |
parent | dd27e10774ec4b9e4420d1eb9cfe6eb72a83f074 (diff) | |
download | pkgsrc-4af3a83b6920cad9f90afe837b5fadb1461d1ad1.tar.gz |
check defined before using USE_LANGUAGES as condition.
-rw-r--r-- | mk/bsd.pkg.use.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk index 8b3cf9fe36f..a9a42e89ea5 100644 --- a/mk/bsd.pkg.use.mk +++ b/mk/bsd.pkg.use.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.use.mk,v 1.53 2013/05/09 23:37:25 riastradh Exp $ +# $NetBSD: bsd.pkg.use.mk,v 1.54 2013/05/10 09:07:37 obache Exp $ # # Turn USE_* macros into proper depedency logic. Included near the top of # bsd.pkg.mk, after bsd.prefs.mk. @@ -90,7 +90,8 @@ BUILD_DEFS+= KERBEROS # LIBTOOL is the publicly-readable variable that should be used by # Makefiles to invoke the proper libtool. # -.if !empty(USE_LANGUAGES:Mfortran) || !empty(USE_LANGUAGES:Mfortran77) +.if defined(USE_LANGUAGES) && !empty(USE_LANGUAGES:Mfortran) || \ + defined(USE_LANGUAGES) && !empty(USE_LANGUAGES:Mfortran77) . if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) # XXX PKG_FAIL_REASON+= "Cross-compiling Fortran with libtool NYI." . endif |