From 45e8ec34a6f553ff5ac7e3ca97375f74637c5057 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 10 Jan 2015 17:35:36 -0500 Subject: [PATCH] always turn on LFS support when compiling for a Linux/GNU system with libpng support --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile b/src/Makefile index f5d58af3..d4cc64a4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -305,6 +305,10 @@ PNG_LDFLAGS?=$(shell $(PNG_CONFIG) --ldflags) endif endif +ifdef LINUX +PNG_CFLAGS+=-D_LARGEFILE64_SOURCE +endif + LIBS+=$(PNG_LDFLAGS) CFLAGS+=$(PNG_CFLAGS) endif