1415aa2a24
a new patch to include a -pkgsrc-runtime compilation option. This option is needed to compile devel/pcre-ocaml due to buildlink shenanigans (see http://mail-index.netbsd.org/pkgsrc-users/2014/12/18/msg020800.html ) Changes: (Changes that can break existing programs are marked with a "*") Standard library: * Add optional argument ?limit to Arg.align. - Bug in Makefile.nt: won't stop on error - Improve MSVC build - Configure doesn't detect features correctly on Haiku - Non-exhaustive matching warning message for open types is confusing - fix quadratic-time algorithm in Consistbl.extract. - Add stack overflow handling for native code (OpenBSD i386 and amd64) - broken semantics of %(%) when substitued by a box - legacy support for %.10s - better documentation of flag # in format strings - Bytes and CamlinternalFormat missing from threads stdlib.cma - -dsource omits parens for `List ((`String "A")::[]) in patterns - __MODULE__ aborts the compiler if the module name cannot be inferred - Debug section is sometimes not readable when using -pack - Missing command line options for ocamldoc - fix race condition when retrieving backtraces - String.sub throws Invalid_argument("Bytes.sub") - Fix ocamldebug module source lookup - Inclusion of packs failing to run module initializers - infinite loop in Mtype.remove_aliases - compilation fails with Env.Error(_) - -short-paths and signature inclusion errors - Fatal error with recursive modules - Recursive module containing alias causes Segmentation fault - Some bugs in generative functors - ocamldep support for "-open M" - Code generation errors for ARM - Improve Windows (MSVC and mingw) build - ocamlbuild: add -bin-annot when using -pack - Fatal error when tracing a function with abstract type - ocamlbuild: add an -ocamlmklib option to change the ocamlmklib command
19 lines
478 B
OCaml
19 lines
478 B
OCaml
$NetBSD: patch-asmcomp_asmlink.ml,v 1.1 2015/01/20 14:12:25 jaapb Exp $
|
|
|
|
pkgsrc_runtime flag
|
|
--- asmcomp/asmlink.ml.orig 2014-05-21 15:08:11.000000000 +0000
|
|
+++ asmcomp/asmlink.ml
|
|
@@ -98,6 +98,13 @@ let add_ccobjs l =
|
|
end
|
|
|
|
let runtime_lib () =
|
|
+ if !Clflags.pkgsrc_runtime
|
|
+ then begin
|
|
+ if !Clflags.gprofile
|
|
+ then [ "-lasmrunp" ]
|
|
+ else [ "-lasmrun" ^ !Clflags.runtime_variant ]
|
|
+ end
|
|
+ else
|
|
let libname =
|
|
if !Clflags.gprofile
|
|
then "libasmrunp" ^ ext_lib
|