Skip to content

Commit 5c4bced

Browse files
dra27ivg
andauthored
Correct linking of Unix library in configure (#1470)
* Correct linking of Unix library in configure * replicates @dra27 change to the configure-omake file Co-authored-by: ivg <[email protected]>
1 parent 7514371 commit 5c4bced

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ ocaml tools/cat.ml '"\n# $name\n"' -- $TAGS _tags.in _tags
5454
ocaml tools/cat.ml '"\n#1 \"$name\"\n"' -- $PLUGINS myocamlbuild.ml.in myocamlbuild.ml
5555
ocaml tools/cat.ml '"\n#1 \"$name\"\n"' -- setup.ml.pre.in $SETUPS setup.ml.in setup.ml
5656
oasis $QUIET setup
57-
ocamlfind ocamlopt unix.cmxa setup.ml -o setup.exe
57+
ocamlfind ocamlopt -package unix -linkpkg setup.ml -o setup.exe
5858
rm setup.cmx setup.cmi setup.o
5959
./setup.exe $QUIET -configure "$@"

configure-omake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ done
4444
# call setup twice so that it can capture the AB deps
4545
for pass in `seq 2`; do
4646
oasis setup
47-
ocamlfind ocamlopt unix.cmxa setup.ml -o setup.exe
47+
ocamlfind ocamlopt -package unix -linkpkg setup.ml -o setup.exe
4848
rm setup.cmx setup.cmi setup.o
4949
./setup.exe -configure --prefix $(opam config var prefix) "$@"
5050
done

0 commit comments

Comments
 (0)