| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.829.2.5 2015/03/09 08:45:26 snj Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.829.2.6 2015/04/11 05:36:13 snj Exp $ |
2 | | | 2 | |
3 | # This needs to be before bsd.init.mk | | 3 | # This needs to be before bsd.init.mk |
4 | .if defined(BSD_MK_COMPAT_FILE) | | 4 | .if defined(BSD_MK_COMPAT_FILE) |
5 | .include <${BSD_MK_COMPAT_FILE}> | | 5 | .include <${BSD_MK_COMPAT_FILE}> |
6 | .endif | | 6 | .endif |
7 | | | 7 | |
8 | .if !defined(_BSD_OWN_MK_) | | 8 | .if !defined(_BSD_OWN_MK_) |
9 | _BSD_OWN_MK_=1 | | 9 | _BSD_OWN_MK_=1 |
10 | | | 10 | |
11 | MAKECONF?= /etc/mk.conf | | 11 | MAKECONF?= /etc/mk.conf |
12 | .-include "${MAKECONF}" | | 12 | .-include "${MAKECONF}" |
13 | | | 13 | |
14 | # | | 14 | # |
| @@ -62,29 +62,27 @@ MKGCC?= no | | | @@ -62,29 +62,27 @@ MKGCC?= no |
62 | .if ${MKGCC:Uyes} != "no" | | 62 | .if ${MKGCC:Uyes} != "no" |
63 | | | 63 | |
64 | .if ${MACHINE} == "playstation2" || ${MACHINE_CPU} == "aarch64" | | 64 | .if ${MACHINE} == "playstation2" || ${MACHINE_CPU} == "aarch64" |
65 | HAVE_GCC?= 0 | | 65 | HAVE_GCC?= 0 |
66 | .else | | 66 | .else |
67 | # Otherwise, default to GCC4.8 | | 67 | # Otherwise, default to GCC4.8 |
68 | HAVE_GCC?= 48 | | 68 | HAVE_GCC?= 48 |
69 | .endif | | 69 | .endif |
70 | | | 70 | |
71 | # | | 71 | # |
72 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is | | 72 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is |
73 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. | | 73 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. |
74 | # | | 74 | # |
75 | .if ${HAVE_GCC} == 45 | | 75 | .if ${HAVE_GCC} == 48 |
76 | EXTERNAL_GCC_SUBDIR= gcc.old | | | |
77 | .elif ${HAVE_GCC} == 48 | | | |
78 | EXTERNAL_GCC_SUBDIR= gcc | | 76 | EXTERNAL_GCC_SUBDIR= gcc |
79 | .else | | 77 | .else |
80 | EXTERNAL_GCC_SUBDIR= /does/not/exist | | 78 | EXTERNAL_GCC_SUBDIR= /does/not/exist |
81 | .endif | | 79 | .endif |
82 | | | 80 | |
83 | .endif | | 81 | .endif |
84 | | | 82 | |
85 | .if !empty(MACHINE_ARCH:Mearm*) | | 83 | .if !empty(MACHINE_ARCH:Mearm*) |
86 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes | | 84 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes |
87 | .endif | | 85 | .endif |
88 | | | 86 | |
89 | _LIBC_COMPILER_RT.aarch64= yes | | 87 | _LIBC_COMPILER_RT.aarch64= yes |
90 | _LIBC_COMPILER_RT.i386= yes | | 88 | _LIBC_COMPILER_RT.i386= yes |