about summary refs log tree commit homepage
path: root/Makefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-11-15 03:42:50 +0000
committerEric Wong <normalperson@yhbt.net>2012-11-15 04:05:53 +0000
commite11a55dee1f5ad36bfb6f5a9b2484ef63522df41 (patch)
tree880893a4d9471490910de994d7eebb733a51fcac /Makefile
parent1567a0746ca0083fe43c95a725a69228929ff9a3 (diff)
downloadpcu-e11a55dee1f5ad36bfb6f5a9b2484ef63522df41.tar.gz
pcu-fsync: add support for syncfs() on Linux (-f flag)
Sometimes it is useful to just commit a single filesystem.
This transparently falls back to using sync(2) if syncfs(2)
is not available.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0027fdd..b7d4ede 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,8 @@ pcu-fsync: fsync.c compat-util.h
 
 PCU_BIN := pcu-fadvise pcu-mincore pcu-fsync
 
+pcu-fsync: LDFLAGS += -ldl
+
 $(PCU_BIN):
         $(CC) $(CFLAGS) $(LDFLAGS) -o $@+ $<
         mv $@+ $@