| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.145 2022/06/24 12:30:09 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.145.4.1 2022/10/21 19:16:35 bsiegert Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | | | 4 | |
5 | TEST_PROGRAM= ocamltest | | 5 | TEST_PROGRAM= ocamltest |
6 | MAKE_JOBS_SAFE= no | | 6 | MAKE_JOBS_SAFE= no |
7 | UNLIMIT_RESOURCES= stacksize | | 7 | UNLIMIT_RESOURCES= stacksize |
8 | | | 8 | |
9 | USE_TOOLS+= bash | | 9 | USE_TOOLS+= bash |
10 | USE_LANGUAGES+= c | | 10 | USE_LANGUAGES+= c |
11 | USE_LIBTOOL= yes | | 11 | USE_LIBTOOL= yes |
12 | USE_GNU_CONFIGURE_HOST= no | | 12 | USE_GNU_CONFIGURE_HOST= no |
13 | | | 13 | |
14 | #USE_GCC_RUNTIME= yes | | 14 | #USE_GCC_RUNTIME= yes |
| @@ -17,27 +17,28 @@ USE_GNU_CONFIGURE_HOST= no | | | @@ -17,27 +17,28 @@ USE_GNU_CONFIGURE_HOST= no |
17 | .include "native.mk" | | 17 | .include "native.mk" |
18 | | | 18 | |
19 | # Options | | 19 | # Options |
20 | | | 20 | |
21 | .if ${OCAML_USE_OPT_COMPILER} == "yes" | | 21 | .if ${OCAML_USE_OPT_COMPILER} == "yes" |
22 | CONFIGURE_ARGS+= --enable-native-compiler | | 22 | CONFIGURE_ARGS+= --enable-native-compiler |
23 | BUILD_TARGET= world.opt | | 23 | BUILD_TARGET= world.opt |
24 | .else | | 24 | .else |
25 | CONFIGURE_ARGS+= --disable-native-compiler | | 25 | CONFIGURE_ARGS+= --disable-native-compiler |
26 | BUILD_TARGET= world | | 26 | BUILD_TARGET= world |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
29 | # configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops | | 29 | # configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops |
30 | .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386" | | 30 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || \ |
| | | 31 | !empty(MACHINE_PLATFORM:MNetBSD-*-earm*) |
31 | CONFIGURE_ARGS+= --enable-imprecise-c99-float-ops | | 32 | CONFIGURE_ARGS+= --enable-imprecise-c99-float-ops |
32 | .endif | | 33 | .endif |
33 | | | 34 | |
34 | # This is needed because ${WRKSRC}/build/partial-install.sh uses | | 35 | # This is needed because ${WRKSRC}/build/partial-install.sh uses |
35 | # $PWD as part of its script. However, with /bin/sh on SunOS | | 36 | # $PWD as part of its script. However, with /bin/sh on SunOS |
36 | # (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is | | 37 | # (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is |
37 | # set before the cd takes place and is then passed down. So the end | | 38 | # set before the cd takes place and is then passed down. So the end |
38 | # result is when ./build/partial-install.sh is called, PWD is set | | 39 | # result is when ./build/partial-install.sh is called, PWD is set |
39 | # to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which | | 40 | # to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which |
40 | # is what ${SH} is on SunOS, doesn't exhibit this behaviour. | | 41 | # is what ${SH} is on SunOS, doesn't exhibit this behaviour. |
41 | .if ${OPSYS} == "SunOS" | | 42 | .if ${OPSYS} == "SunOS" |
42 | INSTALL_MAKE_FLAGS+= SHELL=${SH:Q} | | 43 | INSTALL_MAKE_FLAGS+= SHELL=${SH:Q} |
43 | .endif | | 44 | .endif |