Link with -fPIC runtime.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Nov 2017 12:01:49 +0000 (12:01 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Nov 2017 12:01:49 +0000 (12:01 +0000)
src/Makefile.in

index 6a13bef..03c6362 100644 (file)
@@ -84,11 +84,14 @@ all: $(BYTE_TARGETS)
 opt: $(OPT_TARGETS)
 
 virt-top: $(OBJS)
-       ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^
+       ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
+         -runtime-variant _pic \
+         -o $@ $^
 
 virt-top.opt: $(XOBJS)
        ocamlfind ocamlopt \
          $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
+         -runtime-variant _pic \
          -o $@ $^
 
 # Manual page.