git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -fPIC option to the C compiler, required in f31
[vsys.git]
/
ocaml_inotify-0.4
/
Makefile
diff --git
a/ocaml_inotify-0.4/Makefile
b/ocaml_inotify-0.4/Makefile
index
7dd187a
..
43c691e
100644
(file)
--- a/
ocaml_inotify-0.4/Makefile
+++ b/
ocaml_inotify-0.4/Makefile
@@
-1,5
+1,5
@@
CC = gcc
CC = gcc
-CFLAGS = -Wall -O2
+CFLAGS = -Wall -O2
-fPIC
OCAMLC = ocamlc
OCAMLOPT = ocamlopt
OCAMLC = ocamlc
OCAMLOPT = ocamlopt
@@
-33,7
+33,7
@@
inotify.cmxa: inotify_stubs.o inotify.cmx
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c -o $@ $<
%.o: %.c
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c -o $@ $<
%.o: %.c
- $(CC) -I /usr/lib/ocaml $(CFLAGS) -c -o $@ $<
+ $(CC) -I /usr/lib/ocaml
-I /usr/lib64/ocaml
$(CFLAGS) -c -o $@ $<
test.inotify: inotify.cmxa test.inotify.ml
$(OCAMLOPT) -o $@ unix.cmxa $+
test.inotify: inotify.cmxa test.inotify.ml
$(OCAMLOPT) -o $@ unix.cmxa $+