| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: gcc.mk,v 1.114 2012/03/06 11:39:55 hans Exp $ | | 1 | # $NetBSD: gcc.mk,v 1.115 2012/04/13 02:30:45 sbd Exp $ |
2 | # | | 2 | # |
3 | # This is the compiler definition for the GNU Compiler Collection. | | 3 | # This is the compiler definition for the GNU Compiler Collection. |
4 | # | | 4 | # |
5 | # User-settable variables: | | 5 | # User-settable variables: |
6 | # | | 6 | # |
7 | # USE_NATIVE_GCC | | 7 | # USE_NATIVE_GCC |
8 | # When set to "yes", the native gcc is used, no matter which | | 8 | # When set to "yes", the native gcc is used, no matter which |
9 | # compiler version a package requires. | | 9 | # compiler version a package requires. |
10 | # | | 10 | # |
11 | # Package-settable variables: | | 11 | # Package-settable variables: |
12 | # | | 12 | # |
13 | # GCC_REQD | | 13 | # GCC_REQD |
14 | # The minimum version of the GNU Compiler Collection that is | | 14 | # The minimum version of the GNU Compiler Collection that is |
| @@ -383,27 +383,27 @@ _GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD} | | | @@ -383,27 +383,27 @@ _GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD} |
383 | _USE_GCC_SHLIB?= yes | | 383 | _USE_GCC_SHLIB?= yes |
384 | . endif | | 384 | . endif |
385 | . if !empty(PKGPATH:Mlang/gcc3-objc) | | 385 | . if !empty(PKGPATH:Mlang/gcc3-objc) |
386 | _IGNORE_GCC3OBJC= yes | | 386 | _IGNORE_GCC3OBJC= yes |
387 | MAKEFLAGS+= _IGNORE_GCC3OBJC=yes | | 387 | MAKEFLAGS+= _IGNORE_GCC3OBJC=yes |
388 | . endif | | 388 | . endif |
389 | . if !defined(_IGNORE_GCC3OBJC) && !empty(_LANGUAGES.gcc:Mobjc) | | 389 | . if !defined(_IGNORE_GCC3OBJC) && !empty(_LANGUAGES.gcc:Mobjc) |
390 | _GCC_PKGSRCDIR+= ../../lang/gcc3-objc | | 390 | _GCC_PKGSRCDIR+= ../../lang/gcc3-objc |
391 | _GCC_DEPENDENCY+= gcc3-objc>=${_GCC_REQD}:../../lang/gcc3-objc | | 391 | _GCC_DEPENDENCY+= gcc3-objc>=${_GCC_REQD}:../../lang/gcc3-objc |
392 | _USE_GCC_SHLIB?= yes | | 392 | _USE_GCC_SHLIB?= yes |
393 | . endif | | 393 | . endif |
394 | .endif | | 394 | .endif |
395 | | | 395 | |
396 | .if !empty(USE_NATIVE_GCC:M[yY][eE][sS]) | | 396 | .if !empty(USE_NATIVE_GCC:M[yY][eE][sS]) && !empty(_IS_BUILTIN_GCC:M[yY][eE][sS]) |
397 | _USE_PKGSRC_GCC= no | | 397 | _USE_PKGSRC_GCC= no |
398 | .endif | | 398 | .endif |
399 | | | 399 | |
400 | .if defined(_IGNORE_GCC) | | 400 | .if defined(_IGNORE_GCC) |
401 | _USE_PKGSRC_GCC= NO | | 401 | _USE_PKGSRC_GCC= NO |
402 | .endif | | 402 | .endif |
403 | | | 403 | |
404 | .if !defined(_USE_PKGSRC_GCC) | | 404 | .if !defined(_USE_PKGSRC_GCC) |
405 | _USE_PKGSRC_GCC= YES | | 405 | _USE_PKGSRC_GCC= YES |
406 | . if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS]) | | 406 | . if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS]) |
407 | _GCC_TEST_DEPENDS= gcc>=${_GCC_REQD} | | 407 | _GCC_TEST_DEPENDS= gcc>=${_GCC_REQD} |
408 | _USE_PKGSRC_GCC!= \ | | 408 | _USE_PKGSRC_GCC!= \ |
409 | if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG} 2>/dev/null; then \ | | 409 | if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG} 2>/dev/null; then \ |