pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ocaml: reduce diff to lang/ocaml
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Fri Aug 29 01:58:40 2025 +0200
Changeset: 85c10875369dd70b94a00dd3e22e498801d5b2a8
Modified Files:
ocaml/Makefile
ocaml/native.mk
Log Message:
ocaml: reduce diff to lang/ocaml
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=85c10875369dd70b94a00dd3e22e498801d5b2a8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ocaml/Makefile | 8 ++++++++
ocaml/native.mk | 4 ----
2 files changed, 8 insertions(+), 4 deletions(-)
diffs:
diff --git a/ocaml/Makefile b/ocaml/Makefile
index f7c35a6892..310fe6ece5 100644
--- a/ocaml/Makefile
+++ b/ocaml/Makefile
@@ -35,6 +35,14 @@ UNLIMIT_RESOURCES= stacksize
.include "options.mk"
.include "native.mk"
+.if ${OCAML_USE_OPT_COMPILER} == "yesTODOBROKEN"
+CONFIGURE_ARGS+= --enable-native-compiler
+BUILD_TARGET= world.opt
+.else
+CONFIGURE_ARGS+= --disable-native-compiler
+BUILD_TARGET= world
+.endif
+
# configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops
.if ${MACHINE_PLATFORM:MNetBSD-*-i386} || \
${MACHINE_PLATFORM:MNetBSD-*-earm*}
diff --git a/ocaml/native.mk b/ocaml/native.mk
index 5d3ad80ec2..9654eff438 100644
--- a/ocaml/native.mk
+++ b/ocaml/native.mk
@@ -43,13 +43,9 @@ PLIST_VARS+= ocaml-opt
# The opt compiler needs the C compiler suite
USE_LANGUAGES+= c
PLIST.ocaml-opt= yes
-CONFIGURE_ARGS+= --enable-native-compiler
-BUILD_TARGET= world.opt
.else
# If we're bytecode compiling, don't strip executables
INSTALL_UNSTRIPPED= yes
-CONFIGURE_ARGS+= --disable-native-compiler
-BUILD_TARGET= world
.endif
.endif # OCAML_NATIVE_MK
Home |
Main Index |
Thread Index |
Old Index