From: David ‘Bombe’ Roden Date: Fri, 26 Apr 2013 04:14:36 +0000 (+0200) Subject: Use better configuration for large file access. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=964198c0e2f36bd0c1050cc29accbad54d52778d;p=ccp.git Use better configuration for large file access. --- diff --git a/Makefile b/Makefile index 447da7b..500c48b 100644 --- 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 $@ $^