Use better configuration for large file access.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Apr 2013 04:14:36 +0000 (06:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Apr 2013 04:14:36 +0000 (06:14 +0200)
Makefile

index 447da7b..500c48b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@
 PREFIX=$(HOME)
 BINDIR=$(PREFIX)/bin
 
-FLAGS=-D_FILE_OFFSET_BITS=64
+CFLAGS+=$(shell getconf LFS_CFLAGS)
+LDFLAGS+=$(shell getconf LFS_LDFLAGS)
 
 all: ccp cmv
 
@@ -10,7 +11,7 @@ cmv: ccp
        ln -s ccp cmv
 
 ccp: ccp.o
-       gcc -o $@ $^
+       gcc $(LDFLAGS) -o $@ $^
 
 ccp.o: ccp.c
        gcc -Wall $(FLAGS) -c -o $@ $^