| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bootstrap.mk,v 1.17 2015/02/07 09:35:55 pho Exp $ | | 1 | # $NetBSD: bootstrap.mk,v 1.18 2015/02/07 20:08:30 joerg Exp $ |
2 | # ----------------------------------------------------------------------------- | | 2 | # ----------------------------------------------------------------------------- |
3 | # Select a bindist of bootstrapping compiler on a per-platform basis. | | 3 | # Select a bindist of bootstrapping compiler on a per-platform basis. |
4 | # | | 4 | # |
5 | # BOOT_ARCHIVE | | 5 | # BOOT_ARCHIVE |
6 | # This variable is set to the name of compressed archive file of a | | 6 | # This variable is set to the name of compressed archive file of a |
7 | # bootstrapping compiler for the current platform. | | 7 | # bootstrapping compiler for the current platform. |
8 | # | | 8 | # |
9 | # BOOT_TARBALL | | 9 | # BOOT_TARBALL |
10 | # Similar to BOOT_ARCHIVE, but "*.tar" not "*.tar.xz". | | 10 | # Similar to BOOT_ARCHIVE, but "*.tar" not "*.tar.xz". |
11 | # | | 11 | # |
12 | .include "../../mk/bsd.prefs.mk" | | 12 | .include "../../mk/bsd.prefs.mk" |
13 | .if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "FreeBSD" | | 13 | .if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "FreeBSD" |
14 | BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-freebsd.tar.xz | | 14 | BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-freebsd.tar.xz |
| @@ -26,26 +26,27 @@ CONFLICTS+= libelf-[0-9]* | | | @@ -26,26 +26,27 @@ CONFLICTS+= libelf-[0-9]* |
26 | .elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "Linux" | | 26 | .elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "Linux" |
27 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-linux.tar.xz | | 27 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-linux.tar.xz |
28 | | | 28 | |
29 | .elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "NetBSD" | | 29 | .elif ${MACHINE_ARCH} == "x86_64" && ${OPSYS} == "NetBSD" |
30 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-netbsd.tar.xz | | 30 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-netbsd.tar.xz |
31 | | | 31 | |
32 | .elif !empty(MACHINE_PLATFORM:MSunOS-5.11-i386) | | 32 | .elif !empty(MACHINE_PLATFORM:MSunOS-5.11-i386) |
33 | BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-solaris2.tar.xz | | 33 | BOOT_ARCHIVE:= ${PKGNAME}-boot-i386-unknown-solaris2.tar.xz |
34 | | | 34 | |
35 | .elif !empty(MACHINE_PLATFORM:MSunOS-5.11-x86_64) | | 35 | .elif !empty(MACHINE_PLATFORM:MSunOS-5.11-x86_64) |
36 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-solaris2.tar.xz | | 36 | BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-solaris2.tar.xz |
37 | | | 37 | |
38 | .else | | 38 | .else |
| | | 39 | BOOT_ARCHIVE:= ${PKGNAME}-boot-unknown.tar.xz |
39 | PKG_FAIL_REASON+= "internal error: unsupported platform" | | 40 | PKG_FAIL_REASON+= "internal error: unsupported platform" |
40 | .endif | | 41 | .endif |
41 | | | 42 | |
42 | # FreeBSD < 10 surprisingly doesn't have a native iconv so we need to | | 43 | # FreeBSD < 10 surprisingly doesn't have a native iconv so we need to |
43 | # use pkgsrc libiconv for this OPSYS. And if a bootkit depends on | | 44 | # use pkgsrc libiconv for this OPSYS. And if a bootkit depends on |
44 | # pkgsrc libiconv, the "normal" build must do the same because GHC | | 45 | # pkgsrc libiconv, the "normal" build must do the same because GHC |
45 | # always needs to link executables with libiconv, just like libgmp | | 46 | # always needs to link executables with libiconv, just like libgmp |
46 | # when integer-gmp is used. For this reason it might be desirable to | | 47 | # when integer-gmp is used. For this reason it might be desirable to |
47 | # create two separate bootkits, one for < 10 and another for >= 10. | | 48 | # create two separate bootkits, one for < 10 and another for >= 10. |
48 | .if ${OPSYS} == "FreeBSD" | | 49 | .if ${OPSYS} == "FreeBSD" |
49 | USE_BUILTIN.iconv= no | | 50 | USE_BUILTIN.iconv= no |
50 | .endif | | 51 | .endif |
51 | | | 52 | |