| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: gcc.mk,v 1.157 2015/04/02 23:42:15 jperkin Exp $ | | 1 | # $NetBSD: gcc.mk,v 1.158 2015/04/02 23:50:25 jperkin 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 | # GCCBASE | | 7 | # GCCBASE |
8 | # If using a native GCC and the compiler is not in $PATH then | | 8 | # If using a native GCC and the compiler is not in $PATH then |
9 | # this should be set to the base installation directory. | | 9 | # this should be set to the base installation directory. |
10 | # | | 10 | # |
11 | # USE_NATIVE_GCC | | 11 | # USE_NATIVE_GCC |
12 | # When set to "yes", the native gcc is used, no matter which | | 12 | # When set to "yes", the native gcc is used, no matter which |
13 | # compiler version a package requires. | | 13 | # compiler version a package requires. |
14 | # | | 14 | # |
| @@ -662,27 +662,27 @@ _GCC_ARCHDIR!= \ | | | @@ -662,27 +662,27 @@ _GCC_ARCHDIR!= \ |
662 | if [ -x ${_GCC_PREFIX}bin/gcc ]; then \ | | 662 | if [ -x ${_GCC_PREFIX}bin/gcc ]; then \ |
663 | ${DIRNAME} `${_GCC_PREFIX}bin/gcc ${MABIFLAG} -print-libgcc-file-name 2>/dev/null`; \ | | 663 | ${DIRNAME} `${_GCC_PREFIX}bin/gcc ${MABIFLAG} -print-libgcc-file-name 2>/dev/null`; \ |
664 | else \ | | 664 | else \ |
665 | ${ECHO} "_GCC_ARCHDIR_not_found"; \ | | 665 | ${ECHO} "_GCC_ARCHDIR_not_found"; \ |
666 | fi | | 666 | fi |
667 | . if empty(_GCC_ARCHDIR:M*not_found*) | | 667 | . if empty(_GCC_ARCHDIR:M*not_found*) |
668 | . if defined(MABIFLAG) && !empty(MABIFLAG) | | 668 | . if defined(MABIFLAG) && !empty(MABIFLAG) |
669 | _GCC_PREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H}/ | | 669 | _GCC_PREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H}/ |
670 | _GCC_SUBPREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H:T}/ | | 670 | _GCC_SUBPREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H:T}/ |
671 | . endif | | 671 | . endif |
672 | . endif | | 672 | . endif |
673 | _GCC_LIBDIRS= ${_GCC_ARCHDIR} | | 673 | _GCC_LIBDIRS= ${_GCC_ARCHDIR} |
674 | . if empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss]) | | 674 | . if empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss]) |
675 | _GCC_LIBDIRS+= ${_GCC_PREFIX}lib | | 675 | _GCC_LIBDIRS+= ${_GCC_PREFIX}lib${LIBABISUFFIX} |
676 | . endif | | 676 | . endif |
677 | _GCC_LDFLAGS= # empty | | 677 | _GCC_LDFLAGS= # empty |
678 | . for _dir_ in ${_GCC_LIBDIRS:N*not_found*} | | 678 | . for _dir_ in ${_GCC_LIBDIRS:N*not_found*} |
679 | _GCC_LDFLAGS+= -L${_dir_} ${COMPILER_RPATH_FLAG}${_dir_} | | 679 | _GCC_LDFLAGS+= -L${_dir_} ${COMPILER_RPATH_FLAG}${_dir_} |
680 | . endfor | | 680 | . endfor |
681 | LDFLAGS+= ${_GCC_LDFLAGS} | | 681 | LDFLAGS+= ${_GCC_LDFLAGS} |
682 | .endif | | 682 | .endif |
683 | | | 683 | |
684 | # Point the variables that specify the compiler to the installed | | 684 | # Point the variables that specify the compiler to the installed |
685 | # GCC executables. | | 685 | # GCC executables. |
686 | # | | 686 | # |
687 | _GCC_DIR= ${WRKDIR}/.gcc | | 687 | _GCC_DIR= ${WRKDIR}/.gcc |
688 | _GCC_VARS= # empty | | 688 | _GCC_VARS= # empty |