mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-25 13:00:22 -04:00
21 lines
482 B
OCaml
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
|