summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-01 11:06:45 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-01 11:06:45 +0200
commit547e08eb203efda9417d696e9bed9a88c281abe3 (patch)
treeda11381941b634991565a2b7ac1d8209a54807c2
parent0db336fe4665d3ca2e7b0f6c4fa44a32bf5aafd3 (diff)
downloadpgfuse-547e08eb203efda9417d696e9bed9a88c281abe3.tar.gz
pgfuse-547e08eb203efda9417d696e9bed9a88c281abe3.tar.bz2
use getconf
-rw-r--r--TODO3
-rw-r--r--inc.mak7
2 files changed, 4 insertions, 6 deletions
diff --git a/TODO b/TODO
index 425597e..4343470 100644
--- a/TODO
+++ b/TODO
@@ -15,9 +15,6 @@ TODO list (in order of priority)
and tiny files (without padding to the block size)
- make block size detectable per file (there is no reason why
different files should not have a different block size)
-- allow for size_t and off_t (check int4 which should
- be int8, use be64ton and not htonl), flag for 64-bit
- (large filesystem)?
- establish self-containment (with respect to
a temporarily unavailable Postgresql server)
- minimal SELinux support, i.e. one fix security context
diff --git a/inc.mak b/inc.mak
index a26cc19..7238599 100644
--- a/inc.mak
+++ b/inc.mak
@@ -1,9 +1,9 @@
CC=gcc
# for debugging
-CFLAGS = -Wall -Werror -g -O0 -pthread
+#CFLAGS = -Wall -Werror -g -O0 -pthread
# for releasing
-#CFLAGS = -Wall -O2
+CFLAGS = -Wall -O2
# redhat has libpq-fe.h and fuse.h in /usr/include, ok
@@ -16,7 +16,8 @@ CFLAGS += -I/usr/include/postgresql
# declare version of FUSE API we want to program against
CFLAGS += -DFUSE_USE_VERSION=26
-CFLAGS += -D_FILE_OFFSET_BITS=64
+# get compilation flags for filesystem
+CFLAGS += `getconf LFS_CFLAGS`
# debug
#CFLAGS += -I/usr/local/include/fuse