Commit eee311d0 authored by Julius Plenz's avatar Julius Plenz

Makefile: use "-pthreads", move "-ldl" to the back

parent 5b1132e7
default: all
all: cachestats cachedel nocache.so
%.c: Makefile
cachestats: cachestats.c
gcc -Wall -o cachestats cachestats.c
cachedel: cachedel.c
......@@ -10,7 +11,7 @@ nocache.o: nocache.c
fcntl_helpers.o: fcntl_helpers.c
gcc -Wall -fPIC -c -o fcntl_helpers.o fcntl_helpers.c
nocache.so: nocache.o fcntl_helpers.o
gcc -Wall -shared -Wl,-soname,nocache.so -ldl -o nocache.so nocache.o fcntl_helpers.o
gcc -Wall -pthread -shared -Wl,-soname,nocache.so -o nocache.so nocache.o fcntl_helpers.o -ldl
install: all
install -m 0644 nocache.so /usr/local/lib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment