From 883b6484f2f3be9f4b24cddb88696a23d58762b4 Mon Sep 17 00:00:00 2001 From: Brecht Sanders Date: Wed, 15 Nov 2017 19:25:23 +0100 Subject: [PATCH] --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 26d0e0d..a3860c3 100644 --- a/Makefile +++ b/Makefile @@ -33,14 +33,18 @@ RMDIR = rm -rf CP = cp -f CPDIR = cp -rf +ifdef STATIC +CFLAGS += -DSTATIC +CXXFLAGS += -DSTATIC +LDFLAGS += -static +endif + ifdef USE_XLSXIO CFLAGS += -DUSE_XLSXIO CXXFLAGS += -DUSE_XLSXIO LDFLAGS += -lxlsxio_write ifdef STATIC -CFLAGS += -DSTATIC -CXXFLAGS += -DSTATIC -LDFLAGS += -static -lzip -lzip -lbz2 -lz +LDFLAGS += -lzip -lzip -lbz2 -lz endif endif