tools: move the definition of syslib from ocamlmklibconfig.ml to ocamlmklib.ml
parent
206442489b
commit
04d24edec0
|
@ -164,7 +164,6 @@ MKLIB=rm -f $(1) && $(TOOLPREF)ar rcs $(1) $(2)
|
|||
|
||||
### Canonicalize the name of a system library
|
||||
SYSLIB=-l$(1)
|
||||
#ml let syslib x = "-l"^x;;
|
||||
|
||||
### The ranlib command
|
||||
RANLIB=$(TOOLPREF)ranlib
|
||||
|
|
|
@ -164,7 +164,6 @@ MKLIB=rm -f $(1) && $(TOOLPREF)ar rcs $(1) $(2)
|
|||
|
||||
### Canonicalize the name of a system library
|
||||
SYSLIB=-l$(1)
|
||||
#ml let syslib x = "-l"^x;;
|
||||
|
||||
### The ranlib command
|
||||
RANLIB=$(TOOLPREF)ranlib
|
||||
|
|
|
@ -159,7 +159,6 @@ MKSHAREDLIBRPATH=
|
|||
|
||||
### Canonicalize the name of a system library
|
||||
SYSLIB=$(1).lib
|
||||
#ml let syslib x = x ^ ".lib";;
|
||||
|
||||
### The ranlib command
|
||||
RANLIB=echo
|
||||
|
|
|
@ -162,7 +162,6 @@ MKSHAREDLIBRPATH=
|
|||
|
||||
### Canonicalize the name of a system library
|
||||
SYSLIB=$(1).lib
|
||||
#ml let syslib x = x ^ ".lib";;
|
||||
|
||||
### The ranlib command
|
||||
RANLIB=echo
|
||||
|
|
|
@ -1984,7 +1984,6 @@ config MKSHAREDLIBRPATH "$mksharedlibrpath"
|
|||
config NATDYNLINKOPTS "$natdynlinkopts"
|
||||
cat >> ${conffile} <<EOF
|
||||
SYSLIB=-l\$(1)
|
||||
#ml let syslib x = "-l"^x;;
|
||||
|
||||
### How to build a static library
|
||||
MKLIB=rm -f \$(1) && ${TOOLPREF}ar rc \$(1) \$(2) && ${TOOLPREF}ranlib \$(1)
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
open Printf
|
||||
open Ocamlmklibconfig
|
||||
|
||||
let syslib x =
|
||||
if Config.ccomp_type = "msvc" then x ^ ".lib" else "-l" ^ x
|
||||
|
||||
(* PR#4783: under Windows, don't use absolute paths because we do
|
||||
not know where the binary distribution will be installed. *)
|
||||
let compiler_path name =
|
||||
|
|
Loading…
Reference in New Issue