diff options
author | obache <obache@pkgsrc.org> | 2012-09-17 04:43:56 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-09-17 04:43:56 +0000 |
commit | 1a5a4d79b9247fd7b11bfdbf8d8fb8f040d031c6 (patch) | |
tree | 21e13c03abf552458a10c56703877f9f8c7e65ae /mk | |
parent | 194a01173ee0b1e097699be4aa79be443a099fc4 (diff) | |
download | pkgsrc-1a5a4d79b9247fd7b11bfdbf8d8fb8f040d031c6.tar.gz |
check defined(_USE_GCC_SHLIB) before using it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/gcc.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index bd10c1a5fef..70734b2676c 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.128 2012/09/16 12:18:30 jperkin Exp $ +# $NetBSD: gcc.mk,v 1.129 2012/09/17 04:43:56 obache Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -758,7 +758,7 @@ PREPEND_PATH+= ${_GCC_DIR}/bin .endif # Add dependency on GCC libraries if requested. -.if !empty(_USE_GCC_SHLIB:M[Yy][Ee][Ss]) && !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss]) +.if (defined(_USE_GCC_SHLIB) && !empty(_USE_GCC_SHLIB:M[Yy][Ee][Ss])) && !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss]) # Special case packages which are themselves a dependency of gcc runtime. . if empty(PKGPATH:Mdevel/libtool-base) && empty(PKGPATH:Mdevel/binutils) . include "../../lang/gcc47-libs/buildlink3.mk" |