pkgsrc-ng/lang/ocaml/patches/patch-asmcomp_asmlink.ml
2016-10-14 07:49:11 +02:00

21 lines
482 B
OCaml

$NetBSD: patch-asmcomp_asmlink.ml,v 1.2 2015/12/29 23:34:52 dholland 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