From 280fe492162175e2dda917ca770ae9accba97a7c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 28 Nov 2019 11:03:28 +0100 Subject: [PATCH] add -fPIC option to the C compiler, required in f31 --- Makefile | 2 +- ocaml_inotify-0.4/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 781620b..ef54e53 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ ocaml_inotify-0.4/inotify.cmxa: $(MAKE) -C ocaml_inotify-0.4 && cp -f ocaml_inotify-0.4/inotify_stubs.o ./ splice_stub.o: splice_stub.c - gcc -c -I /usr/lib/ocaml -I /usr/lib64/ocaml splice_stub.c -o splice_stub.o + gcc -c -I /usr/lib/ocaml -I /usr/lib64/ocaml splice_stub.c -o splice_stub.o -fPIC vsys: ocaml_inotify-0.4/inotify.cmxa globals.cmx fdwatcher.cmx conffile.cmx splice_stub.o splice.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx unixsocketwatcher.cmx backend.cmx main.cmx ifneq "$(OCAML_OLD)" "" diff --git a/ocaml_inotify-0.4/Makefile b/ocaml_inotify-0.4/Makefile index ea4dbe6..43c691e 100644 --- a/ocaml_inotify-0.4/Makefile +++ b/ocaml_inotify-0.4/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -Wall -O2 +CFLAGS = -Wall -O2 -fPIC OCAMLC = ocamlc OCAMLOPT = ocamlopt -- 2.43.0