59834e
From 2afed7fe878bee73fabab0b1f43aac269bdb3b6a Mon Sep 17 00:00:00 2001
fbac9f
From: "Richard W.M. Jones" <rjones@redhat.com>
fbac9f
Date: Sat, 18 Nov 2017 12:01:49 +0000
59834e
Subject: [PATCH 20/23] Link with -fPIC runtime.
fbac9f
fbac9f
---
fbac9f
 src/Makefile.in | 5 ++++-
fbac9f
 1 file changed, 4 insertions(+), 1 deletion(-)
fbac9f
fbac9f
diff --git a/src/Makefile.in b/src/Makefile.in
fbac9f
index 6a13bef..03c6362 100644
fbac9f
--- a/src/Makefile.in
fbac9f
+++ b/src/Makefile.in
fbac9f
@@ -84,11 +84,14 @@ all: $(BYTE_TARGETS)
fbac9f
 opt: $(OPT_TARGETS)
fbac9f
 
fbac9f
 virt-top: $(OBJS)
fbac9f
-	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) -o $@ $^
fbac9f
+	ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
fbac9f
+	  -runtime-variant _pic \
fbac9f
+	  -o $@ $^
fbac9f
 
fbac9f
 virt-top.opt: $(XOBJS)
fbac9f
 	ocamlfind ocamlopt \
fbac9f
 	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
fbac9f
+	  -runtime-variant _pic \
fbac9f
 	  -o $@ $^
fbac9f
 
fbac9f
 # Manual page.
fbac9f
-- 
59834e
2.31.1
fbac9f