Add experimental static linking support to the makefile

This commit is contained in:
Maxime Coste 2016-11-02 22:28:05 +00:00
parent 01dba547fb
commit 4d222bbb33

View File

@ -1,4 +1,5 @@
debug ?= yes debug ?= yes
static ?= no
pedantic ?= yes pedantic ?= yes
ifeq ($(debug),yes) ifeq ($(debug),yes)
@ -58,6 +59,11 @@ else
LDFLAGS += -rdynamic LDFLAGS += -rdynamic
endif endif
ifeq ($(static),yes)
LIBS += -ltinfo -lgpm
LDFLAGS += -static -pthread
endif
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address
all : kak all : kak