From 4d222bbb335bcf04e5af3b37cfb6b870c5a9f423 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Nov 2016 22:28:05 +0000 Subject: [PATCH] Add experimental static linking support to the makefile --- src/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Makefile b/src/Makefile index 46893db8..966582d4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ debug ?= yes +static ?= no pedantic ?= yes ifeq ($(debug),yes) @@ -58,6 +59,11 @@ else LDFLAGS += -rdynamic endif +ifeq ($(static),yes) + LIBS += -ltinfo -lgpm + LDFLAGS += -static -pthread +endif + CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address all : kak