diff options
author | obache <obache> | 2012-09-17 04:43:56 +0000 |
---|---|---|
committer | obache <obache> | 2012-09-17 04:43:56 +0000 |
commit | 06c8e4743f1413bbe4f7532d339476351344e5db (patch) | |
tree | 21e13c03abf552458a10c56703877f9f8c7e65ae /mk | |
parent | 584b1f05ce1fd1036a100b5e05f437aaf2996b61 (diff) | |
download | pkgsrc-06c8e4743f1413bbe4f7532d339476351344e5db.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" |